TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mbrandt5 on November 20, 2017, 06:31:47 PM
-
Has anyone experienced something different from command line entries, to autolisp passed entries...
For some reason if I have visual lisp editor pass the values (vl-cmdf "_.Mline") (vl-cmdf pt1) (vl-cmdf pt2) (vl-cmdf pt3) (vl-cmdf "_C") to autocad The closed point moves sporadically
If I have visual lisp editor pass the following values then pause for user input (vl-cmdf "_.Mline") (vl-cmdf pt1) (vl-cmdf pt2) (vl-cmdf pt3 pause), followed by entering _C manually The mline closes correctly
I have only experienced this with mline...is there some setting to only close via user input I am unaware of...
Thanks for any input
-
Active Object Snap modes can affect coordinates supplied to an AutoCAD command through AutoLISP. I would suggest either prefixing the point input with the Object Snap "_non" (None) modifier to force AutoCAD to ignore Object Snap on the next point input, or temporarily disable all Object Snap modes prior to evaluating the AutoCAD command.
e.g.:(vl-cmdf "_.mline" "_non" pt1
"_non" pt2
"_non" pt3
"_C")
-
I've seen a lot of posts related to OSNAP and COMMAND issue.
If you set OSNAPCOORD sysvar to 1, the problem is solved. Just set it once with every new autocad installation and forget about it.
-
Thanks