assafius Posted October 18, 2012 Posted October 18, 2012 Hey, I want to invoke the "dimlinear" function through lisp, that is (command "dimlinear"..) etc. Could anyone tell me which arguments does the function take and also how do I adjust the text properties of the "dimlinear" annotations. Thanks guys/ladies Quote
Alejandros85 Posted October 18, 2012 Posted October 18, 2012 assafius hello, if you want to call the command with lisp could be so (defun c:dlin () (vl-cmdf "_dimlinear") ) and if you want to modify the properties of the dimensions of DIMSTYLE could do it directly. I hope this helps and sorry for my english. Regards. Quote
assafius Posted October 18, 2012 Author Posted October 18, 2012 Thanks Alejandro but that's not quite what I meant. Running the "dimlinear" command through lisp is easy. The tricky part is to set the parameters that follow the command. If anyone knows what they are, please reply.. Thanks fellows Quote
rkmcswain Posted October 18, 2012 Posted October 18, 2012 Running the "dimlinear" command through lisp is easy. The tricky part is to set the parameters that follow the command. If anyone knows what they are, please reply.. Thanks fellows Do you have AutoCAD with which to test? If so, run the command and follow the prompts. Generally speaking, it's [pick two points] -or- [select an object], then pick point to define location of dim line. Quote
Tharwat Posted October 18, 2012 Posted October 18, 2012 This ... ? (if (and (setq p1 (getpoint "\n Specify first point :")) (setq p2 (getpoint "\n Next point :" p1)) ) (command "_.dimlinear" "_non" p1 "_non" p2 "_non" (polar p1 (+ (angle p1 p2) (/ pi 2.)) (/ (distance p1 p2) 35.) ) ) ) Quote
assafius Posted October 20, 2012 Author Posted October 20, 2012 Thanks ! By the way, can u please remind me how to lisp something that turns off the snap mode ? thanks again Quote
Tharwat Posted October 21, 2012 Posted October 21, 2012 thanks again You're welcome . By the way, can u please remind me how to lisp something that turns off the snap mode ? (setvar 'osmode 0) Quote
Lee Mac Posted October 21, 2012 Posted October 21, 2012 can u please remind me how to lisp something that turns off the snap mode? Another: (setvar 'osmode (logior (getvar 'osmode) 16384)) Quote
rkmcswain Posted October 23, 2012 Posted October 23, 2012 You're welcome . (setvar 'osmode 0) Another: (setvar 'osmode (logior (getvar 'osmode) 16384)) To clarify for the OP..... Technically, setting osmode to 0 does not turn off object snap, it just disables all object snap modes - which of course gives the user the same effect. But doing it this way loses the combination of previously set of object snap modes. Quote
Lee Mac Posted October 23, 2012 Posted October 23, 2012 Technically, setting osmode to 0 does not turn off object snap, it just disables all object snap modes - which of course gives the user the same effect.But doing it this way loses the combination of previously set of object snap modes. Precisely why I offered my alternative... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.