Jump to content

Recommended Posts

Posted (edited)
16 hours ago, russ079 said:

How would I set it to loop after the tag scale is set? Can I add in a while function after the tag scale is set ?

 

Instead of the the if for the two points change that to while. to exit either hit esc or don't pick one of the points.

 

13 hours ago, thecocuk07 said:

Repeated operations to remember the scale factor; i did something like this but i guess it's wrong

 

@thecocuk07 I use ldata to save the variable to the file. this means if you run the command at least once and save the file it will remember the last input even after closing.

 

(or (setq *cmp:scal (vlax-ldata-get "Tag" "Scale")) (setq *cmp:scal 5))
(if (setq cmp:scal (getreal (strcat "\nSpecify tags scale <" (rtos *cmp:scal) ">: ")))
  (vlax-ldata-put "Tag" "Scale"  cmp:scal)
  (vlax-ldata-put "Tag" "Scale" (setq cmp:scal *cmp:scal))
)       

 

 

 

 

 

cmpp 2.0.lsp

Edited by mhupp
Posted (edited)
7 hours ago, mhupp said:

 

Instead of the the if for the two points change that to while. to exit either hit esc or don't pick one of the points.

 

 

@thecocuk07 I use ldata to save the variable to the file. this means if you run the command at least once and save the file it will remember the last input even after closing.

 

(or (setq *cmp:scal (vlax-ldata-get "Tag" "Scale")) (setq *cmp:scal 5))
(if (setq cmp:scal (getreal (strcat "\nSpecify tags scale <" (rtos *cmp:scal) ">: ")))
  (vlax-ldata-put "Tag" "Scale"  cmp:scal)
  (vlax-ldata-put "Tag" "Scale" (setq cmp:scal *cmp:scal))
)       

 

 

 

 

 

cmpp 2.0.lsp 9.31 kB · 1 download

@mhupp  Thank you for the patience you have shown . 

Edited by thecocuk07

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...