TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TJAM51 on February 03, 2005, 03:10:26 PM
-
I need to draw a 3 point arc but I need to have the osmode set to nearest for the first point, the osmode set to zero for the second point and the osmode set back to nearest (512) for the third and last point......I know it possibly can be doen but how......
Thanks
-
will something like this work?
(defun c:a3 (/ osm p1 p2 p3)
(setq osm (getvar 'osmode))
(setvar 'osmode 0)
(if (setq p1 (osnap (getpoint "\nPoint 1: ") "_near"))
(if (setq p2 (osnap (getpoint p1 "\nPoint 2: ") "_none"))
(if (setq p3 (osnap (getpoint p2 "\nPoint 3: ") "_near"))
(vl-cmdf "_arc" p1 p2 p3)
)
)
)
(setvar 'osmode osm)
(princ)
)
-
Neat routine but I was hoping not to type in but simply pick the locations.
Thanks
-
type in what?
-
Here is another one:
(defun c:3arc (/ osm)
(setq osm (getvar 'osmode))
(setvar 'osmode 0)
(command ".arc" "_near" pause "_none" pause "_near" pause)
(setvar 'osmode osm)
(princ)
)
-
I had to type in "NEAR" when it prompted me for point 1.
Thanks
-
:oops: I see now I realize now it did work.......thanks much....
-
Without LISP
osmode;0;_arc near;\_c;\near;\
-
Here is another one:
(defun c:3arc (/ osm)
(setq osm (getvar 'osmode))
(setvar 'osmode 0)
(command ".arc" "_near" pause "_none" pause "_near" pause)
(setvar 'osmode osm)
(princ)
)
When you use the osmode override you don't need to set osmode to 0
(defun c:3arc ()
(command ".arc" "_near" pause "_none" pause "_near" pause)
(princ)
)
-
Without LISP
osmode;0;_arc near;\_c;\near;\
That is a good one, here without _c
^C^C_arc _near;\_non;\_near;\
-
Man, you guys are havin' too much fun! This stuff is cool!
-
Here would be a different type of 3 point arc.....first point and second point and the drag in the desired direction....here is a macr of a similar situation...how could this be put to lisp?
Thanks
arc;node,quad;\$M=E;node,quad;\;$(getvar,lastpoint);
-
Are you trying to do this? [macro]
^C^C_arc \e;\d;
-
How could this be put to lisp?
-
(command "._arc" pause "_e" pause "_d" pause)
-
THANKS SO VERY MUCH TO ALL THAT RESPONDED TO THIS REQUEST.