save lisp parameters for next use

save lisp parameters for next use

Anonymous
Not applicable
3,120 Views
21 Replies
Message 1 of 22

save lisp parameters for next use

Anonymous
Not applicable

hi. is there any way to save and read last used lisp parameters every time it's used? for example: the offset command "remembers" the last offset distance and layer options parameters used. i'd like to have 2 saved parameters in my file if possible.

0 Likes
3,121 Views
21 Replies
Replies (21)
Message 21 of 22

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... my lisp requires two polylines to work, what I'd like to have is that while I'm requested to select them then I'll have the option to change any of the parameters if wanted. like the offset command - when triggered I'm prompted to enter distance OR change parameters. maybe in my lisp I can have something similar like "Select two polylines OR [PARAMETER1 PARAMETER2 ...] <...>"?


For an example of how you can do that kind of thing [and speaking of the Offset command], see my OffsetRunningOptions.lsp routine, available here.  Specifically, look at the part starting with

 

  (while (not done)

 

and using the ERRNO System Variable, with which you can have it take a selection or an option selection, including more than one possible option.

Kent Cooper, AIA
Message 22 of 22

scot-65
Advisor
Advisor
Good one... Forgot about the DWGPROPS area...
🙂

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes