- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a script which like to turn to the lisp.
scriptbegining
-insert
"c:\MULTILINE_def.DWG"
0,0
xplode
l
e
-purge
b
MULTILINE_def
n
MLINE
ST
tightline
S
1
J
Z
scriptending
In the middle i also like to implement forcing layer to be 'some' and then returning back to previous after command is ready.
It is probably something from this
(setq lay (getvar "CLAYER"))
(setvar "CLAYER" "layername")
(setvar "CLAYER" lay)
Could anyone help ?
Lisp will be started by button on tool palette to draw multiline with specific style on specific layer.
And since the style may not exist then first is 'inserting' to get the style, then xplode/purge the drawing_block (need not the 'empty' blocks) and then drafting multiline with some options.
Reason for going to lisp is that when script is loaded by tool palette then pre-set layer is ignored for some reason even ithough is chosen in the tool definition. While in script i can force layer and return back to previous layer.
regards
miroko
Solved! Go to Solution.