Author Topic: 3 types of system variable  (Read 2434 times)

0 Members and 1 Guest are viewing this topic.

MeasureUp

  • Bull Frog
  • Posts: 462
3 types of system variable
« on: September 11, 2014, 08:09:43 PM »
I know there are 3 types of system variable.
1) Saved in Registry
2) Saved in Drawing
3) Saved in User-Settings

Could anyone please explain for me what difference are these types?
I know "saved in registry". The most confusion to me is the difference between "saved in drawing" and "saved in user-settings".
Thanks for your help.

lamarn

  • Swamp Rat
  • Posts: 636
Re: 3 types of system variable
« Reply #1 on: September 12, 2014, 03:11:03 AM »
I am not sure about the last one. Where is this saved then?
The first two definitly excist. Most variables are saved in the definition of DWG (2.)
Use the 'setvar' command and the ? to view the setting of vars.
What are you trying to achieve?
Design is something you should do with both hands. My 2d hand , my 3d hand ..

MeasureUp

  • Bull Frog
  • Posts: 462
Re: 3 types of system variable
« Reply #2 on: September 12, 2014, 05:03:46 AM »
Thanks.
Here is some examples
1) "OFFSETGAPTYPE" - saved in registry
2) "OBSCUREDCOLOR" - saved in drawing
3) "OBJECTISOLATIONMODE" - user-settings
and one more
4) "OFFSETDIST" - not-saved

I am trying to understand the differences.
Quote
"Where is this saved then?"
It is my question, too.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: 3 types of system variable
« Reply #3 on: September 12, 2014, 08:49:11 AM »
We have discussed this before but can't find the link. No time this morning.
This is a good list of variables http://www.hyperpics.com/system_variables/

Registry variables are available in each drawing and consistent across all drawings.
Drawing & user variables are stored in the drawing and are independent. They can be different for each drawing.
Some variables are not stored & start at a default value in each drawing. In this case you may want a lisp to set these & others if a new drawing is opened to your preferred value.
There are many lisp to do that.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

BlackBox

  • King Gator
  • Posts: 3770
Re: 3 types of system variable
« Reply #4 on: September 12, 2014, 09:17:53 AM »
As a fortunate coincidence, we were discussing a similar topic here this morning... With the addition of custom system variables in 2011+:

http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-custom-drawing-variable-yes-or-no-0-or-1/m-p/5270469/highlight/false#M325926
"How we think determines what we do, and what we do determines what we get."

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: 3 types of system variable
« Reply #5 on: September 12, 2014, 09:21:42 AM »
Perfect timing. 8)

Thanks
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

BlackBox

  • King Gator
  • Posts: 3770
Re: 3 types of system variable
« Reply #6 on: September 12, 2014, 09:43:38 AM »
Perfect timing. 8)

Thanks

Probably not as well said as what you'd have found , but I'm happy to help where I can.

Cheers
"How we think determines what we do, and what we do determines what we get."

MeasureUp

  • Bull Frog
  • Posts: 462
Re: 3 types of system variable
« Reply #7 on: September 14, 2014, 07:31:41 PM »
As a fortunate coincidence, we were discussing a similar topic here this morning... With the addition of custom system variables in 2011+:

http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-a-custom-drawing-variable-yes-or-no-0-or-1/m-p/5270469/highlight/false#M325926

Hi BlackBox. Sorry I don't see the link you referred to fully explains my question.
Can you help me on my question? - What is  the difference between "Saved in Registry", "Saved in Drawing", "User-settings" and "Not-saved".
Thanks for your time.

Thanks.
Here is some examples
1) "OFFSETGAPTYPE" - saved in registry
2) "OBSCUREDCOLOR" - saved in drawing
3) "OBJECTISOLATIONMODE" - user-settings
and one more
4) "OFFSETDIST" - not-saved

I am trying to understand the differences.
Quote
"Where is this saved then?"
It is my question, too.

BlackBox

  • King Gator
  • Posts: 3770
Re: 3 types of system variable
« Reply #8 on: September 14, 2014, 08:40:31 PM »
Each has an aptly titled description... In short, as I feel this has already been covered here, registry is persistent and can be session wide, drawing is self evident, user setting is generally persistent and session wide yet not located in registry, and finally not saved which again is self evident.

HTH
"How we think determines what we do, and what we do determines what we get."

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: 3 types of system variable
« Reply #9 on: September 14, 2014, 09:48:43 PM »
Quote
What is  the difference between "Saved in Registry", "Saved in Drawing", "User-settings" and "Not-saved".

"Saved in Registry", The registry is a place in your computers memory & saved to a special file when the computer is shut down & restored when restarted so it is not affected when you close ACAD.
"Saved in Drawing",  This type is saved in each separate drawing file and restored whe the drawing is opened. Therefore can be different for each drawing.
"User-settings" , is an ambiguous term. You can have user defined variables and values stored by the user in the drawing in pre defined variables or the user can take steps to create his own registry variable storage.
"Not-saved" , this type is lost each time the drawing is closed & restored to the default setting when the drawing is opened.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

MeasureUp

  • Bull Frog
  • Posts: 462
Re: 3 types of system variable
« Reply #10 on: September 15, 2014, 12:19:50 AM »
Thanks guys.
It makes sense to me now.