samsudeenmanoos Posted June 20, 2018 Share Posted June 20, 2018 When I Load this lisp the object snap disappearing can you please fix this issue also? G1.LSP grid coordinate.dwg Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 20, 2018 Share Posted June 20, 2018 Easy fix (setvar "osmode" 0) ; osmode is the settings for your osnap. Just set a few osnaps and then type Osmode you will see number change. ; the fix (setq oldsnap (getvar 'osmode)) (setvar "osmode" 0) ......... (setvar 'osmode oldsnap) ; reset your osnaps to before lisp ) ;; end of program Quote Link to comment Share on other sites More sharing options...
samsudeenmanoos Posted June 20, 2018 Author Share Posted June 20, 2018 Dear bigal thanks for your reply but can you do me a favour that, can edit in the same lisp and send me? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 20, 2018 Share Posted June 20, 2018 Changes to code (defun c:g1( [color="red"]/ m1 m2 y x x1 y1 oldpdmode oldsnap oldpdsize[/color]) [color="red"](setq oldsnap (getvar "osmode") (setq oldpdmode (getvar "pdmode")) (setq oldpdsize (getvar "pdsize"))[/color] (setvar "osmode" 0) (setvar "blipmode" 0) .......... ......... (princ "\nMacaotocad GRIDMARK.LSP ") [color="red"](setvar "osmode" oldsnap) (setvar "pdmode" oldpdmode) (setvar "pdsize" oldpdsize)[/color] (princ) ) ;; end of program Quote Link to comment Share on other sites More sharing options...
SLW210 Posted June 20, 2018 Share Posted June 20, 2018 I have moved your thread to the AutoLISP, Visual LISP & DCL Forum, please post in the most appropriate Forum. Quote Link to comment Share on other sites More sharing options...
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.