.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create database resident system variable

6 REPLIES 6
Reply
Message 1 of 7
HomeBoyLV
646 Views, 6 Replies

Create database resident system variable

Is it possible to create a database resident system variable? My desire is to create a system variable that I can use to expose results of my program, and/or let the user set values that the program can use. I thought I saw an example somewhere, but I can't seem to find it now.

Any Ideas?

Thanks

HomeBoy Out
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: HomeBoyLV

No way to create your own system variables.

You can store data in dictionaries and provide your own UI or command to let
the user view or change them.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6166438@discussion.autodesk.com...
Is it possible to create a database resident system variable? My desire is
to create a system variable that I can use to expose results of my program,
and/or let the user set values that the program can use. I thought I saw an
example somewhere, but I can't seem to find it now. Any Ideas? Thanks
HomeBoy Out
Message 3 of 7
NathTay
in reply to: HomeBoyLV

See AutoCAD help for info on USERI1-5 & USERR1-5 system variables. Obvious shortcomings are limited number of variables and knowing they aren't/won't be used by another person/program.
Message 4 of 7
Anonymous
in reply to: HomeBoyLV


Or.... P/Invoke:

 

 acedGetEnv and acedSetEnv


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<HomeBoyLV>
Is it possible to create a database resident
system variable? My desire is to create a system variable that I can use to
expose results of my program, and/or let the user set values that the program
can use. I thought I saw an example somewhere, but I can't seem to find it
now. Any Ideas? Thanks HomeBoy Out
Message 5 of 7
Anonymous
in reply to: HomeBoyLV

I think you're confusing storing data in a DWG file with
storing it in the registry.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm


wrote in message news:6166949@discussion.autodesk.com...
Or.... P/Invoke:

acedGetEnv and acedSetEnv

Is it possible to create a database resident system variable? My desire is
to create a system variable that I can use to expose results of my program,
and/or let the user set values that the program can use. I thought I saw an
example somewhere, but I can't seem to find it now. Any Ideas? Thanks
HomeBoy Out
Message 6 of 7
Anonymous
in reply to: HomeBoyLV

Thanks Tony and yes,
Please ignore what I just previously posted 🙂


////
"Tony Tanzillo"
I think you're confusing storing data in a DWG file with
storing it in the registry.
Message 7 of 7
Artvegas
in reply to: Anonymous

Very old post, but from AutoCAD 2011 onwards it is possible to create a custom system variable by adding a key to the registry.

 

Your user might need elevated UAC permissions to be able to add it to the registry's local-machine hive, but this can be achieved by your installer.

 

There's more information contained at the bottom of the following through-the-interface post for those who are interested Custom System Variable Link

 

Art

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost