bzz Posted June 5, 2013 Posted June 5, 2013 Hi, i am trying to retrieve a user grid scale factor value using either autolisp or VBA. can anyone help please? Thanks, bzz. Quote
marko_ribar Posted June 5, 2013 Posted June 5, 2013 I think yes, the same : (defun c:grids ( / g ) (setq g (getvar 'gridunit)) (setq g (cond ((getpoint (strcat "\nSpecify new gridunit variable <" (rtos (car g)) "," (rtos (cadr g)) "> : "))) (g) ) ) (if (caddr g) (setq g (list (car g) (cadr g)))) (setvar 'gridunit g) (princ) ) Quote
bzz Posted June 5, 2013 Author Posted June 5, 2013 Thanks marko_ribar and Tharwat but gridunit sys variable specifies grid spacing for the current viewport. I am trying to get a user-defined Grid scale that is set from drawing settings window in transformation tab. Quote
Tharwat Posted June 5, 2013 Posted June 5, 2013 If you want to set the grid scale manually , how would you set it ? I couldn't find transformation tab in the Drawing Settings Window in my Autocad 2014 Quote
bzz Posted June 5, 2013 Author Posted June 5, 2013 on the command line I type in "editdrawingsettings" and then click on transormation tab and set the user-defined grid scale factor value Quote
Tharwat Posted June 5, 2013 Posted June 5, 2013 on the command line I type in "editdrawingsettings" and then click on transormation tab and set the user-defined grid scale factor value That option might be available only in Civil cad as it is shown into your profile , can you upload a snapshot of that dialog ? Quote
marko_ribar Posted June 5, 2013 Posted June 5, 2013 I would try with command sysvdlg and type there *grid*, and if there is sysvar for grid scale factor, then it should be simple to use (getvar "???") where ??? is that name of sysvar... Quote
Tharwat Posted June 5, 2013 Posted June 5, 2013 This is only available in civil3D Unfortunately I do not either have or work with Civil3D but we have lots of nice guys in this forum using that Cad version and they are very helpful guys , so just wait and you should have your question answered in no time . Quote
bzz Posted June 5, 2013 Author Posted June 5, 2013 Thanks marko_ribar, unfortunatelly all the sysvariables about the grid didn't help 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.