Jump to content

Recommended Posts

Posted

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?

Posted
(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?

Posted

The command is this: ADESETCRDSYS.

 

This is the dialog which pops up. Does this help any?

 

Capture.JPG

Posted (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 by BIGAL

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...