Set default to HPLAYER

Set default to HPLAYER

isis_souzaJ3RBP
Explorer Explorer
555 Views
2 Replies
Message 1 of 3

Set default to HPLAYER

isis_souzaJ3RBP
Explorer
Explorer

As the title says, is it possible to set a default value to HPLAYER? This variable is changing all the time and I can't bear to manually fix it all the time. I want to set the default to ".", so it will always use the current layer, and I want this set to be permanent. Is that possible? If so, how?

0 Likes
Accepted solutions (2)
556 Views
2 Replies
Replies (2)
Message 2 of 3

cadffm
Consultant
Consultant
Accepted solution

Hi,

 

You can do that the way you do

HPLAYER<enter><.><enter>

That's all. The default is the current one all the time, IN THIS FILE!

 

Why in this file: [F1]

Documentation: It's a setting in the current/ in each FILE

 

-

 

If you want to change this setting in each file you open(what is an edit of this file),

you beed to setup an automation what will do that.

 

Create your own acaddoc.lsp (or edit the existing one),

add the line:

(setvar "HPLAYER" ".")

 

You are familiar with acaddoc.lsp, or do you need help?

Read this

 

 

Sebastian

Message 3 of 3

pendean
Community Legend
Community Legend
Accepted solution

@isis_souzaJ3RBP As noted in HELP in AutoCAD, that variable is saved PER DRAWING

pendean_0-1752063887065.png

 

For you to always have it default to a set setting you must create a startup LISP that auto-loads every time you open a DWG file: with the LISP above provided by @cadffm You can use these methods to set it up to autoload

https://www.lee-mac.com/autoloading.html 

 

HTH