.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Close Palette

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
SRSDS
513 Views, 2 Replies

Close Palette

I want to close a palette when the block editor opens.

 

 

2 REPLIES 2
Message 2 of 3
_gile
in reply to: SRSDS

Hi,

You can handle the Document.CommandWillStart event and check for the CommandEventArgs.GlobalCommandName property. If it's equal to "BEDIT", then set the palette Visible property to false.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
SRSDS
in reply to: _gile

Gile,

Thanks. I feel foolish on this one. 

I was racing to delete this post when I discovered how easy it was.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report