Jump to content

Recommended Posts

Posted

What I would Like to do is have a single click dimension that stays active until I hit esc or enter.

I do a lot of entity dimensioning.

My normal routine is start the dimension tool

then hit enter to select measure "Entity"

then start over....hundreds of times 😬

Is there a routine to keep that tool and option persistent?

Then I can enter a command and single click a polyline segment for example, one after another.

Thanks in advance

Posted

You could do this with a 'while' loop

 

In the simplest, set up a LISP , then something simple like (while (= EndLoop "No") .... your dimension stuff ....)

Which if that is all you are dong escape will end the while loop (OK with an error, but that isn't so important in this case). It should keep loopimg round so all you need to do is click on the entity.

 

Not sure your LISP abilities but that would be my first idea, have a go

Posted

my lisp abilities suck....lol

I'm having a hard time with it.

I've written code in c# and vb but for some reason lisp is throwing me for a loop......😂 🤣😔

Posted

You can write in VBA if you want just make sure you download the VBA extension.

 

Something like this NOTE defun name has 2 "LL" as "Dimali" is a valid command name so caught me out for a couple of minutes always worth checking defun names. Just press Enter to exit or Esc

 

(defun c:dimalli ( / )
(while (setq pt1 (getpoint "\npick 1st point "))
(setq pt2 (getpoint "\npick 2nd point"))
(setq pt3 (getpoint pt1 "\nPick dim line point "))
(command "DIMALIGNED" pt1 pt2 pt3)
)
(princ)
)

 

 

  • Thanks 1
Posted

@BIGAL is there a way to set options?

for example when I start a DIMALIGNED I then have to hit "E" for entity.

Is there a switch for that option?

Thanks!

Posted

I would make it a little more dynamic by removing pt3 and adding a pause

 

(defun c:dimalli ( / )
  (while (setq pt1 (getpoint "\npick 1st point "))
    (setq pt2 (getpoint "\npick 2nd point"))
    (command "DIMALIGNED" pt1 pt2 pause)
  )
  (princ)
)

 

Posted

Hi mhupp yeah had it that way 1st go.

 

Tom don't understand the "E" just make sure osnaps are set correct can be added to defun.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...