Jump to content

Recommended Posts

Posted

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?

Posted

Have you tried setting the value in your template file? That might work.

Posted
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).

Posted

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.

Posted
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.

Posted

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.

Posted
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.

Posted
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.

Posted
That doesn't even work!

 

I was just trying to help. No need to yell at me for it.

Posted
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!

Posted

If you use LT macros should be your strong point since Lisp is unavailable to you without an extender such as the LT Toolbox.

Posted

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?

  • 3 weeks later...
Posted

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.)

Posted

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?

Posted

It could be forcing it to the command line due to a dash preceeding the command.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...