How to change elevation from code

How to change elevation from code

mecoman6GF27
Advocate Advocate
497 Views
5 Replies
Message 1 of 6

How to change elevation from code

mecoman6GF27
Advocate
Advocate

Hi everyone.

Is it possible from code to change the elevation value and, based on its value, add a text at the bottom of AutoCAD?

Thanks bye.

0 Likes
498 Views
5 Replies
Replies (5)
Message 2 of 6

Gepaha
Collaborator
Collaborator

 

Autodesk.AutoCAD.ApplicationServices.Application.GetSystemVariable("ELEVATION")

add a text at the bottom of AutoCAD

If I interpreted it correctly it already appears.

gphanauer_0-1686668407771.png

 

 

0 Likes
Message 3 of 6

mecoman6GF27
Advocate
Advocate

Hi, thanks for the reply.
On the elevation value I solved but below (exactly where you posted the image) I have to add a text based on the elevation value.

0 Likes
Message 4 of 6

hippe013
Advisor
Advisor

Are you referring to the MODEMACRO system variable? This allows a user to display some text on the status bar. 

 

Type MODEMACRO on the command line and enter a piece of text. This will then be displayed on the bottom of the Window. 

 

Example: MODEMACRO 

HELLO WORLD!

 

hippe013_0-1686674012161.png

 

0 Likes
Message 5 of 6

Gepaha
Collaborator
Collaborator

If you find it really necessary, you can add your own items to the StatusBar.
I think I would have to find the item containing elevation and replace it.

There are examples on the internet.

0 Likes
Message 6 of 6

mecoman6GF27
Advocate
Advocate

Hello and thanks a lot for the help

0 Likes