Custom system variables

Custom system variables

Anonymous
Not applicable
670 Views
2 Replies
Message 1 of 3

Custom system variables

Anonymous
Not applicable
What hoops do I need to jump through to define a custom user variable that is similar to the USERR/I/Sx variables that I will use to store information about how custom entity styles should react. I have not found any documentation on system variables, but I have found the references to them in dbmain.h. Can I simply add a customized dbmain.h and the required code for my variable, or am I relegated to defining a function that does not define the data as persistent between drawing sessions?

TIA
0 Likes
671 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
i would do this:

 

your systemv.... is like a command. so if the user
enters the for exsample "myvar"

your arx ask for the input. maybe "1" or
"0"

 

after input of the user, your arx writes the input
to the registry - that's all i think.

 

 

chris
0 Likes
Message 3 of 3

Anonymous
Not applicable
You can't define your own custom system variables.

AutoCAD and most user applications use dictionaries
and xrecords to persist application data in a drawing
file.

You can also provide a command-level user interface
that allows the user to access that data as well.

--
http://www.acadxtabs.com


"KEB" wrote in message news:f17ecb4.-1@WebX.maYIadrTaRb...
> What hoops do I need to jump through to define a custom user variable that is similar to the USERR/I/Sx variables that
I will use to store information about how custom entity styles should react. I have not found any documentation on
system variables, but I have found the references to them in dbmain.h. Can I simply add a customized dbmain.h and the
required code for my variable, or am I relegated to defining a function that does not define the data as persistent
between drawing sessions?
> TIA
>
0 Likes