Preventing users from exploding DWG files.

Preventing users from exploding DWG files.

huuchau94
Explorer Explorer
154 Views
1 Reply
Message 1 of 2

Preventing users from exploding DWG files.

huuchau94
Explorer
Explorer

I want to write an internal add-in. Whenever a member tries to press 'explode CAD' in the central file, a dialog box will appear asking, 'Are you sure you want to do this?' and log that user's action if they really explode it. However, I don't know where to start, please give me some suggestions

0 Likes
155 Views
1 Reply
Reply (1)
Message 2 of 2

MarryTookMyCoffe
Collaborator
Collaborator

you can make a info box that pop up when you push this button there is a event for this, but cancelling is a different thing.

Autodesk.Windows.ComponentManager.PreviewExecute

so with event you can make a text box. But in event I don't see anything that can prevent from command to run.
maybe you could switch command handler for button in it.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
0 Likes