Yeah, that works great. Thanks!!!
Registered forum members do not see this ad.
Things like this ... ?
Code:(defun c:Test (/ p1 p2 w vl) (vl-load-com) (if (and (setq p1 (getpoint "\n Specify first point :")) (setq p2 (getpoint p1 "\n Next point :")) ) (vl-cmdf "_.pline" "_non" p1 "_non" p2 "") ) (if (setq w (getdist "\n Specify width of Polyline :")) (progn (setq vl (vlax-ename->vla-object (entlast))) (vla-put-constantwidth vl w) ) (princ) ) (princ) )
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said


Yeah, that works great. Thanks!!!


Now just to tweak it abit![]()


I just need to add error detection, layer control, setting/resetting of osnaps.
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said


Well, I think I have those figured out. It detects if the layer is there or not. If it is there, then it sets that layer current. If not, it creates it. I've got that implenented, just need to save the current layer and reset it back.
Ok , just post the name of the layer and its settings (color , Lineweight , LType )
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said


Registered forum members do not see this ad.
Here is the code I came up with to deal with the layer:
(if (tblsearch "layer" "A-Wall-Patt")
(command "layer" "s" "A-Wall-Patt" "")
(command "layer" "m" "A-Wall-Patt" "c" "252" "A-Wall-Patt" "")
)
Last edited by Grigs; 11th Jul 2012 at 08:50 pm.
Bookmarks