AutoCAD Visual LISP / AutoLISP :: Possible To Make Left Mouse Click Initiate Zoom Window?

Jan 1, 2012

I still want it to have its normal behavior while in a command, but when not in a command it still enters the selection mode, which does not work, but if it would enter a zoom window command, it might be a more useful command.

View 5 Replies


ADVERTISEMENT

AutoCAD Visual LISP / AutoLISP :: How To GETPOINT Via Mouse Click Only

Dec 22, 2011

I am trying to limit the input that can be processed when using the getpoint lisp function.  So the code below prevents the user from entering null input (i.e just hitting a carraige return) as specified by the initget bit code of 1, or a non-numeric entry (i.e. for instance, typing S and hitting a carriage return) as the getpoint function does not allow for a non-numeric entry.

    (initget 1)
    (setq PT1 (getpoint "
Pick Location of First Point: "))

However, the issue is that the code does NOT prevent the user from entering a number and hitting return.  For instance, if I enter the number 100 and hit return, getpoint accepts this as a valid entry and returns a point value that is projected, in some form or fashion, from I believe the last entered point or (0,0,0) if a point was not previously entered.  I only want the user to be able to select a point with a mouse click and not type in a number or point coordinate.

So is there some way with AutoLISP or Visual Lisp that you can prevent the user from typing in a numeric value and hitting a carraige return in conjuction with the getpoint function?  Or is there some other function that will provide the getpoint functionality while providing the entry limitations described?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Make Fillet With Window Selection?

Jul 11, 2012

It's possible make a fillet with window selection?

View 4 Replies View Related

AutoCAD 2010 :: Middle Mouse Button (wheel) Set To Zoom All / Zoom Extents Double Click

Feb 27, 2013

I am working on getting some settings done, moving from 2008 to 2012. How do you set the Middle Mouse Button (wheel) to either Zoom All or Zoom Extents when you double click it?  I thought it was set in the Main CUI file.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Move A Named Block Left 5 Inches

May 24, 2012

I'm dabbling in lisp to reduce some drafting time. I'm looking for a way to move a named block left 5 inches. The names block in this instance is "Bricks". What would be the easiest way of writing this in lisp form? I searched through the forums and I couldn't find what I was looking for. This is not after an insert command. This is a block that currently exists in the drawing template.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: How To Get Tag String Of An Attribute By Mouse Clicking

Feb 24, 2013

I have a TitleBlock than contains more than 50 attributes inside itself.

I want to prepare a lisp code to GetTagString when I clicking on one attribute inside a BLOCK.

I prepare a code to get Block name when I ckick on a block:

(defun GetBlockName ( / obj)(defun sel_Obj( / sel)(While (=(setq sel (car (entsel "

choose a "BLOCK": ")))nil)(prompt "You didn't select any object!"))sel)(While (not (eq (vla-get-ObjectName (setq obj (vlax-ename->vla-object (sel_Obj)))) "AcDbBlockReference"))(prompt "That was not a "BLOCK"!"));;while (vlax-get-property obj (if (vlax-property-available-p obj 'EffectiveName) 'EffectiveName 'Name)) ) ;;usage: ;;(GetBlockName) ;;RESULT: ;;

just Selected Block Name Something like this but just for TagString of attribute is my desired!

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Extents For All Tabs

Mar 10, 2009

I'm currently working in a drawing that has 148 layout tabs and I frequently work in drawings with more tabs than that. when I switch tabs, I like to see everything in the tab. Is there a lisp that will do a zoom extents in every tab so I don't have to manually do it all the time?

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Autosave After 20 Commands Except Zoom

Dec 18, 2012

I just started learning LISP yesterday, as our office needs an autosave LISP. People have requested it and I have to do it...

How I wanted to do it:

The LISP will be loaded on every PC of every person with AutoCAD.

On startup "command_count" will be on 0

When using a command like plinie this happens: (+ 1 command_count)

Commands like zoom, undo etc will be ignored

When command_count reaches 20 it executes the qsave command

If using the qsave command it resets the command_count to 0

Thats my not working LISP atm:

(defun c:losave ()(setq command_count 0)(+ 1 command_count)(if command_count 10 "_qsave"));(if command "_qsave" setq 0);(if command "_zoom" (- 2 command_count));(if command "_undo" (- 2 command_count));(if command "_qsave" (* 0 command_count));(setq command_count (+ 1 command_count))

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Into A Set Of Coordinates Depending On Selection?

Dec 15, 2011

can do a routine that zooms into a coordinate, based on input.  So for 1A, it would zoom into the coordinate for 1A.

1A = 1,1

1B = 1,2

1C = 1,3

1D = 1,4

I will try to attempt one shortly and will post it within 1 hour. 

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Extents Upon Opening A Drawing?

Nov 13, 2012

What i would like to do is have autocad do a zoom extents automatically when I open a dwg.  Is there a lisp routine that I can run to do this?  I use to have something that would do this but I started a new job and cant remember.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Passing A Point To Zoom Not Working?

Jul 25, 2012

The good news is that, if I were righting a routine that locks up AutoCAD, I'm finished.  The bad news is that I'm not.

The code below is the portion of a routine where I have the user select 2 points and then pass those points to the Zoom command and the M2P osnap.  The problem is that, when the Mid Between 2 Points osnap tries to use the first point, it returnns an "Invalid point" message, enters a loop and locks ACAD.

(defun C:ZC ()
(setq PointOne (getpoint "First point of M2P "))
(setq PointTwo (getpoint "Second point of M2P "))

[Code].....

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Top Block Of Column And Get Bottom Left Bounding Box Corner

Jul 10, 2013

I have blocks forming a column, and I need to allow the user to select the top block of the column but return the bottom left corner of bounding box of the bottom block in the column. 

(DEFUN NXT-INSPNT (/ BLKLST CURENT CUROBJ IDX IPNT MCMD NENT SEL SS VENT) (PROMPT "
>> Pick the Category HEADER to add note:") (SETQss nilss (SSGET ":E:S" (LIST (CONS 0 "INSERT"))) )
(IF ss (PROGN (SETQ sel (ENTGET (SSNAME ss 0)) iPnt (CDR (ASSOC 10 sel)) )
(princ iPNT) (setvar "attreq" 0) (VL-CMDF "-INSERT" "LEG-NOTE" "S" 1 iPnt 0 PAUSE)

[Code] ....

 I'm not exactly sure where my code is failing but I get the following error.

error: AutoCAD.Application: Null extents

View 3 Replies View Related

Photoshop :: Mouse Left+click/Right+click

Jan 18, 2008

I use cs2 and when in photoshop when i left click on any of the tools for instance the pen tool it brings up the menu to select pen tool, freeform pen tool, etc.. rather than just selecting it. I am use to having to right click on the the pen tool to get that menu, i was wondering how i would change it back. Same thing happens when i left click on all the tools on the tools menu, just used the pen tool as an example.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Menu Link - Run IPE With String 270 When Click Amr

Feb 10, 2013

i have in Drive C a file "Steel.lsp" have function called IPE

in this function have this line 

(setq n (getstring "
Enter IPE Height :"))
 
i loaded it

i created a menu and command in it called "Amr"

no i need when i click Amr Run IPE with string 270 then click enter

i need all this happen automaticlly when i click on "Amr" on menu

how???

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Excel Macro To Zoom To Object In Current DWG?

Jun 14, 2013

I am looking for an example excel macro to zoom to an object given the obect entities handle.

View 2 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Double-Click Attributes To Edit With ATTIPEDIT

Dec 5, 2011

Any way to customize the double-click of a block attribute to run the _ATTIPEDIT command on the targeted attribute? I know this can be achieved by holding Ctrl & then double clicking, but I am often using my hand else where on the keyboard, or even more often, when entering many values into attributes, I am using my left hand to keep my place on a sheet of paper as I scroll down it and enter in the values.

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Double Click Dimension For DIMRND Override

Feb 13, 2013

I want to doubleclick on a dimension and have the DIMRND override appear

I can't figure out what command I need to customize the doublclick CUI

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Layout (Entities Or Insertion Point Extents)

Oct 12, 2012

I have a drawing with various layouts that when I do a Zoom Extents the drawings is reduced to the size of a point.

I have done all the usual, ie: look for extra entities that are "out in space" so to speak and there are none.

I wonder if I have a block or image which may have an insertion point "out in space" and if this may be the issue.

Is there some way to Select all entities or Blocks (insertion point) that may exist outside a particular area ie: drawing limits.

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Zoom Extents / Save All / Close All Open Drawings?

May 26, 2010

how to make a routine for zoom extents, save all, and close all open drawings in a single routine?

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Window Selection Of Attributes

Oct 16, 2012

I downloaded a lisp routine that will align block attributes. The problem is I can only select the attributes one at a time. I'd like to be able select multiple attributes using the selection window or a crossing window, but I haven't had much luck. If you use the AEATTSHOW command, it give you a prompt to "select using window" by pressing W. I'd like to have the same functionality for my Align attributes routine.

Below is the portion of code I currently have to select attributes one at a time:

;* Select all attributes to align with the parent selected above and add the attribute entname and the block
;* entname to a list in format ( (AttrEntName BlkEntName) (AttrEntName BlkEntName) (AttrEntName BlkEntName) )
;*
while (/= TempAttr nil)
(setq
TempAttr (nentsel "
Select Attributes to align: ")

[Code] .........

View 5 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Open Xref In Selected Layout And Zoom To Match View?

May 28, 2013

I have used Autocad since 1991, and my current job required me to use Microstation. One feature I liked from Microstaiton is the ability to select and open an external DGN reference, and then match the view of the parent DGN. In AutoCAD, you can also select and open an xref, but the DWG opens to the previous saved view, and not to the desired view that matches the layout.

My thought was to experienting with lisp or scipt and export the "Viewctr", "Viewtwist" and "Viewsize" variables to a text file, then importing the text file and using the "Viewtwist" as my "SNAPANG" value, then "Viewctr" as my "ZOOM, CENTER" value, and finally the "Viewsize" as the "Enter magnification or height:" value.

But, alas, have no time, and not quite the knowledge to duplicate MicroStation's open-xref-and-zoom-to-view feature.

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Select Similar By Window Selection

Jul 30, 2013

When you select similar using  autocad it select similar in entire drawing. What i want is i am able to select similar using the same setting of selecting similar but with window selection instead of entire drawing ?

View 6 Replies View Related

AutoCad :: Create Shortcut For Mouse Left-click Button On Keyboard?

Aug 1, 2013

Is there a way to create a shortcut for mouse left-click button on the keyboard?

View 8 Replies View Related

AutoCAD .NET :: What Event To Be Used To Read Left Click Mouse Location All The Time

Sep 2, 2011

I want to be able to read the left click mouse button coordination all the times . Is it possible ?

View 4 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Vlide Configure Current Window Error

Aug 17, 2011

I have a problem with  "tools/window attributes/configure current"when I try to configure current window (especialy tabulator spaces 8 -> 2) I got fatal error: unhandled access violation Writing 0x0000 Exception at cc424946h

Windows 7 (x64)

AutoCAD 2009, 2010, 2011, 2012

standalone instalation

user with administrator privileges

View 6 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Display Variable Value As Text On Drawing Window

Jun 14, 2013

I am writing a LISP program to generate development of surfaces. Once the entire drawing is completed, I want that the input data to be displayed on drawing window as text.

View 2 Replies View Related

AutoCAD LT :: Mouse Left Click Selecting Multiple Lines / Objects Not Working

Feb 26, 2012

Can not click on multiple objects or lines for erase,trim or extend commands. Is there a mode that I have turned on by accident , driver warning also comes up in trim offset command.

View 6 Replies View Related

Photoshop :: Disable Left Mouse Click With Pen

May 25, 2012

I have a tablet and I am trying to change brush size and hardness with the pen but I keep creating new layers.  Is there a way to turn this off because I would like it to flow better.  With the mouse if I ctrl+alt +left mouse is gives me a new copy of my layer.  With the pen I get the pressure/size to come up but it is fickle and mostly just resorts to creating a new layer copy which is what I want to disable so it just does the brush size/hardness option. It seems the left mouse click doesn't display in any keyboard shortcuts.

View 1 Replies View Related

Photoshop :: CS6 - Left Click Mouse Button Way Too Touchy

Jul 31, 2012

When holding down the left mouse button in the scroll bar area for just a fraction of a second too long, the scroll bar moves several positions. In the past, it wasn't this touchy. It's so touchy that it's impossible to CONSISTENTLY click once and make the scroll thingy move just one position. In previous versions, it works like a charm. Is there a way to adjust this mouse issue?
 
I use it on every image for cloning so that I can check one section at a time. For this reason, I've now gone back to CS5, but also because CS6 crashes on me and it sometimes gets stuck on Auto Saving files (possibly because they're big).

View 3 Replies View Related

AutoCad :: No Selection Window Appearing On Left Click

Dec 20, 2011

By default when we left click in AutoCAD and move the mouse, a selection window appears. Something went wrong in my system and now if I left click no selection window is appearing. For selection window to appear I have to drag the mouse instead of just moving it (which is the normal behavior).

View 3 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Message Not Showing In Console When Load Active Edit Window

Aug 2, 2012

I'm working with our new copy of AutoCAD 2013 and using the Visual LISP IDE to create code. I also have an AC2009 machine right next to me for other tasks. On the 2013 machine when I click the "Load Active Edit Window" button it switches to the console screen but there are no messages printed like:

$
; 37 forms loaded from #<editor "C:/LISP/My-Lisp.lsp">
_$

This of course is making it extremely difficult to debug. I have checked the environment settings and they are exactly the same on each machine. The AC2009 machine prints the messages but the AC2013 machine is just giving me a blank console screen.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved