rcb007 Posted July 15, 2020 Posted July 15, 2020 Im looking for a way to create an If statement which checks to see if a variable is turned on. If it is on then an Alert would appear, if its not then another Alert would appear. Basically, I am using Civil3D, and I want to run a command that checks to see if there is a coordinate system assigned to the drawing or the _geomap command is on. If its on, it would Alert the user that their is an active coordinate zone on, if their is not, it would continue with the command. Hopefully this is not that complex to do? Quote
rkmcswain Posted July 15, 2020 Posted July 15, 2020 (if (zerop (getvar "var")) (alert "Value is zero") (alert "Value is not zero") ) Something like that? Do you know what to check for in your particular case? Quote
rcb007 Posted July 15, 2020 Author Posted July 15, 2020 The command is this: ADESETCRDSYS. This is the dialog which pops up. Does this help any? Quote
BIGAL Posted July 16, 2020 Posted July 16, 2020 (edited) No ! Civ3D is very complex when it comes to finding stuff, sometimes it can be simple. Not every sysvar is directly exposed. Did you google 1st ? A teaser I found it. (setq cscode (ade_projgetwscode)) Edited July 16, 2020 by BIGAL 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.