YZ Posted May 10, 2010 Posted May 10, 2010 I like the look of this System Variable, but I have found it to be counterintuitive in practice. We send our hatches to the back of our drawings every time. If I set HPDRAWORDER to it should send new hatches to back. However, as soon as I close that drawing the System Variable goes back to . Every time. Has anyone had any experience with this one? Is there a way to permanently lock it to the value I want it set to? Quote
SuperCAD Posted May 10, 2010 Posted May 10, 2010 Have you tried setting the value in your template file? That might work. Quote
ReMark Posted May 10, 2010 Posted May 10, 2010 See Also Set Property Overrides for Hatches and Fills Type: Integer Saved in: Not-saved Initial value: 3 Controls the draw order of hatches and fills. Quote
YZ Posted May 10, 2010 Author Posted May 10, 2010 Have you tried setting the value in your template file? That might work. That doesn't even work! That was my last resort before bringing it to the forum. Saved in: Not-saved Is it possible to change it so it can be saved? (The link did not work, so I have not checked that out yet). Quote
ReMark Posted May 10, 2010 Posted May 10, 2010 I think some variables are saved with a drawing while others are saved in the Registry. Unfortunately this value is not saved. Maybe you could use a small lisp file to set the value when you first open AutoCAD each day. Ignore this option as you are using LT which does not recognize Lisp. Use a macro instead. There was no link included. Quote
YZ Posted May 10, 2010 Author Posted May 10, 2010 I think some variables are saved with a drawing while others are saved in the Registry. Unfortunately this value is not saved. Thanks ReMark. I thought that might be the case. That leads me to another question I have been pondering as part of this process: Does Autodesk provide a list of which variables are which? It seems illogical to me that the default for the dialogue box cannot be changed. Quote
ReMark Posted May 10, 2010 Posted May 10, 2010 Variables? Try typing SETVAR at the command line. Illogical? Now you sound like Mr. Spock. I did not write the program so I can't explain why one variable is saved and another isn't. Go figure. Quote
The Buzzard Posted May 10, 2010 Posted May 10, 2010 Variables? Try typing SETVAR at the command line. Illogical? Now you sound like Mr. Spock. I did not write the program so I can't explain why one variable is saved and another isn't. Go figure. Live long and prosper. Quote
YZ Posted May 10, 2010 Author Posted May 10, 2010 Illogical? Now you sound like Mr. Spock. Accidental reference. I was going to write "non-sensicle", then I didn't even know if it was a word. Good to know about SETVAR. For the record it does not hold the HPDRAWORDER value. Might just have to grin and bear this one. Quote
MikeScott Posted May 11, 2010 Posted May 11, 2010 Does Autodesk provide a list of which variables are which? http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WSfacf1429558a55de1a7524c1004e616f8b-64f4.htm,topicNumber=d0e338374 Even better than setvar (well, different).. and you can get to the same listing in your help file. Setvar just let's you see what you've currently got the values set to. Quote
SuperCAD Posted May 11, 2010 Posted May 11, 2010 That doesn't even work! I was just trying to help. No need to yell at me for it. Quote
YZ Posted May 12, 2010 Author Posted May 12, 2010 I was just trying to help. No need to yell at me for it. Sorry, that was a smiling, emphatic exclamation saying "see what I mean, everything that should work does not work!" I was agreeing with you, but by no means was I trying to be impolite or indicate yelling. How about using a macro? I use LT so macros are not my strong point. Though I did look into it today and it seems that you can run .scr file on startup even in LT. I did not know that. I feel like my whole world is falling together! Quote
ReMark Posted May 12, 2010 Posted May 12, 2010 If you use LT macros should be your strong point since Lisp is unavailable to you without an extender such as the LT Toolbox. Quote
YZ Posted May 13, 2010 Author Posted May 13, 2010 Forgive me, but I am a bit confused. I always thought macros and Lisp were the same thing. Where is the best place to learn about macros for a beginner? What sort of things are possible with macros? Quote
ReMark Posted May 13, 2010 Posted May 13, 2010 I like this definition of a macro. Examples of macros are included. http://www.autocadtraining.com/lf-macrosandscripts.htm Quote
YZ Posted June 1, 2010 Author Posted June 1, 2010 Okay, I've been trying to teach myself macros since you posted the possibility to me. I've only successfully made 2, but already it has changed my drafting world! Thank you all immensely. How would I put a macro into either the "NEW" command or the "OPEN' command to reset system variables (esp. HPDRAWORDER) whenever an individual .dwg file is accessed? (I can write the macro, but am hazy on the steps to automate it.) Quote
YZ Posted June 3, 2010 Author Posted June 3, 2010 It dawned on me to put the HPDRAWORDER into the Hatch button macro. This way it will set it every time I create a hatch. Now I have a new problem. I made a slight change to the button macro and now it has disabled the dialogue box. No matter what I have tried I cannot get it back to correct. I have clicked "Reset" in the CUI window, and have copied and pasted a working macro from a previous release, but it simply will not bring up the dialogue box. The best thing is that it's linked to our server, so it has ruined everyone's hatch button! Anyone know why it keeps forcing it to the command line? Quote
ReMark Posted June 3, 2010 Posted June 3, 2010 It could be forcing it to the command line due to a dash preceeding the command. Quote
YZ Posted June 6, 2010 Author Posted June 6, 2010 This is the macro that I have set the hatch button back to: ^C^C_bhatch As best I can tell it should send it to the dialog box. But still it sends it to command line. Quote
Recommended Posts
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.