Can I undefine the HIDE command?

Can I undefine the HIDE command?

Anonymous
Not applicable
803 Views
4 Replies
Message 1 of 5

Can I undefine the HIDE command?

Anonymous
Not applicable

 So, I'm trying to write custom commands.  I want to make HIDE access the HIDEOBJECTS command rather than the silly HIDE command that changes the visualization style.  I tried aliasing HIDE to HIDEOBJECTS, doesn't work. Tried wrting it into a lisp, didn't work.  I can't even undefine the HIDE command.  Seems like HIDE is baked deep into AutoCAD and I can't make it go away or have it call any other command.  

 

Is there a way around this? Or do I just have to define HIDEOBJECTS as something else like OHIDE or something?

0 Likes
804 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

LISP:

(command "_.UNDEFINE" "HIDE")

 

Then add your alias for HIDEOBJECTS.

0 Likes
Message 3 of 5

dbhunia
Advisor
Advisor

You simply can Control/Define/Remove any Existing "AutoCAD Commands Alias" with new "Alias" from "AutoCAD Command Alias Editor" from "Express->Tools->Command Alias Editor..." .......... even you can define an "AutoCAD Command" with Multiple "Alias" & can call it in AutoCAD...

 

And for "undefine the HIDE command" do what @ВeekeeCZ said.....


Debashis Bhunia
Co-Founder of Geometrifying Trigonometry(C)
________________________________________________
Walking is the First step of Running, Technique comes Next....
0 Likes
Message 4 of 5

Anonymous
Not applicable

No, that's the thing. None of that seems to work with the HIDE command. 

undefine it? It's still there. 

Alias it to another command in acad.pgp? It still calls the HIDE command.

define a new command to "HIDE" in a lisp?  still calls the HIDE command. 

 

As far as I can tell, "HIDE" in the command line will always call the HIDE command no matter what you do.  Are there other commands like this that can't be altered?  Why is HIDE so special? 

0 Likes
Message 5 of 5

dbroad
Mentor
Mentor

Firstly, customization that replaces built in functionality with identical names is usually a mistake. There are mainly possible names for hideobjects that don't involve replacing the hide command.  I use OH (objecthide). That said, this should work as a preface to adding your own commmand:

(command "_.undefine" "_.hide") ;Please note the dot in front of the hide command name.  

 

When you use that form it returns HIDEBIM360 which is probably some arx defined command that has a built in alias of hide.

Architect, Registered NC, VA, SC, & GA.