Design Review
Welcome to Autodesk’s Design Review Forums. Share your knowledge, ask questions, and explore popular Design Review topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hide/close markup palette when comparing files through API

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
393 Views, 2 Replies

Hide/close markup palette when comparing files through API

Is it possible to not show the markup palette when comparing files through the API or send a command to close it once it appears?

 

I have enabled 'Disable Auto Open Palettes' in the registry but it still comes up. 

 

Any help will be appreciated

 

Regards

 

Alex

2 REPLIES 2
Message 2 of 3
herbert.he
in reply to: Anonymous

Thank you for your question.

You can use the IAdDWFViewer2.AutoOpenPalettesDisabled(LONG value) to hide markup palette.

 

param value:

 

 Suppress_None    =    0, // don't suppress any
 Suppress_All    =    1,
 Suppress_Markups   =    2,
 Suppress_Markup_Properties =    4,
 Suppress_Object_Properties =    8,
 Suppress_Sheet_Properties =   16,
 Suppress_CrossSections  =   32,
 Suppress_TextPane   =   64,
 Suppress_Views    =  128,
 Suppress_Model    =  256,
 Suppress_GridData   =  512,
 Suppress_GridData_Object = 1024,

 

Any further questions please let me know.



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Message 3 of 3
Anonymous
in reply to: Anonymous

I've just been testing this and it doesn't seem to work when comparing markups. 

 

I set the value to 2 as  you described and I can see that value goes into the registry. The markup palette does not show up when viewing a drawing, but when comparing it does.

 

I tried setting it to 1 to disable all palettes but it still shows up when comparing.

 

Instead of trying to disable opening it, is there a way of closing it after it appears?

 

Regards

 

Alex

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

Post to forums  

Autodesk Design & Make Report