- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Shown below is a code I've created to do construction line. It creates X-line that gets drawn along X-axis with Z elevation = 0.
(defun c:CCX (/ pt)
(setq pt (getpoint "\nSpecify insertion point: "))
(setq pt (list (car pt) (cadr pt) 0))
(progn
(command "XLINE" "H" pt)
(while (> (getvar 'CMDACTIVE) 0)
(command ".Z" "_non" pt pause )
)
)
)
I need some help on how to get the X-lines drawn/moved to layer name "Construction line" with colour 21 and line-type continuous. The code needs to check if the layer name exist, and if not create the layer.
To get it more complicated. I was hoping the code will keep the active layer once the X-lines are drawn.
Any suggestion is much appreciated.
Regards,
Joseph
Solved! Go to Solution.