D.S

adndevblog.typepad.com

Republish Markup Sheets - Manufacturing DevBlog

Republish Markup Sheets - Manufacturing DevBlog Manufacturing DevBlog The resource for software developers working with Design, Lifecycle and Simulation technologies from Autodesk. Home Subscribe Follow Useful Links Autodesk About this Blog « Autodesk Exchange Apps Hackathon – Update | Main | AU 2014 classes » 10/07/2014 Republish Markup Sheets By  Adam Nagy The DWF markup related functionalities in the drawing are provided by the DWF Markup Manager tranlator addin, and it does not provide an API. However, you can still take advantage of its ControlDefinitions if needed: If you use the PrintCommandNames function from this blog post then you'll find these registered by this addin: MarkupManager:Command: Activate Parent &Activate MarkupManager:Command: Done Done MarkupManager:Command: DWF File Close &Close Markup DWF ... MarkupManager:Command: DWF File Open Open DWF Markup set MarkupManager:Command: DWF Republish All Sheets Republish &All Sheets MarkupManager:Command: DWF Republish Markup Sheets Republish &Markup Sheets MarkupManager:Command: Hide Non Markup Sheets Show &non-markup sheets MarkupManager:Command: Markup Information &Properties... MarkupManager:Command: Open DWFViewer &Open in Design Review MarkupManager:Command: Question Question MarkupManager:Command: Resolve Link &Resolve Link... MarkupManager:Command: Review For Review MarkupManager:Command: Save Markup History Changes &Save Markup History Changes MarkupManager:Command: Sheet Information &Properties... MarkupManager:Command: Switch Markup Visibility Hide markups MarkupManager:Command: Zoom To Markup Graphics &Zoom To Markup The Republish Markup Sheets command requires a file name. The way to provide that is through the PostPrivateEvent function. Here is a VBA sample: Sub RepublishMarkupSheets() Dim oCommandMgr As CommandManager Set oCommandMgr = ThisApplication.CommandManager ' Get the collection of control definitions Dim oControlDefs As ControlDefinitions Set oControlDefs = oCommandMgr.ControlDefinitions Call oCommandMgr.PostPrivateEvent( _ kFileNameEvent, "C:\temp\test.dwf") Call oControlDefs( _ "MarkupManager:Command: DWF Republish Markup Sheets").Execute End Sub iLogic / .NET version: Dim oCommandMgr As CommandManager oCommandMgr = ThisApplication.CommandManager ' Get the collection of control definitions Dim oControlDefs As ControlDefinitions oControlDefs = oCommandMgr.ControlDefinitions Call oCommandMgr.PostPrivateEvent( PrivateEventTypeEnum.kFileNameEvent, "C:\temp\test.dwf") Call oControlDefs( "MarkupManager:Command: DWF Republish Markup Sheets").Execute Posted at 03:19 AM in Adam Nagy , Inventor | Permalink | | | Comments Republish Markup Sheets By  Adam Nagy The DWF markup related functionalities in the drawing are provided by the DWF Markup Manager tranlator addin, and it does not provide an API. However, you can still take advantage of its ControlDefinitions if needed: If you use the PrintCommandNames function from this blog post then you'll find these registered by this addin: MarkupManager:Command: Activate Parent &Activate MarkupManager:Command: Done Done MarkupManager:Command: DWF File Close &Close Markup DWF ... MarkupManager:Command: DWF File Open Open DWF Markup set MarkupManager:Command: DWF Republish All Sheets Republish &All Sheets MarkupManager:Command: DWF Republish Markup Sheets Republish &Markup Sheets MarkupManager:Command: Hide Non Markup Sheets Show &non-markup sheets MarkupManager:Command: Markup Information &Properties... MarkupManager:Command: Open DWFViewer &Open in Design Review MarkupManager:Command: Question Question MarkupManager:Command: Resolve Link &Resolve Link... MarkupManager:Command: Review For Review MarkupManager:Command: Save Markup History Changes &Save Markup History Changes MarkupManager:Command: Sheet Information &Properties... MarkupManager:Command: Switch Markup Visibility Hide markups MarkupManager:Command: Zoom To Markup Graphics &Zoom To Markup The Republish Markup Sheets command requires a file name. The way to provide that is through the PostPrivateEvent function. Here is a VBA sample: Sub RepublishMarkupSheets() Dim oCommandMgr As CommandManager Set oCommandMgr = ThisApplication.CommandManager ' Get the collection of control definitions Dim oControlDefs As ControlDefinitions Set oControlDefs = oCommandMgr.ControlDefinitions Call oCommandMgr.PostPrivateEvent( _ kFileNameEvent, "C:\temp\test.dwf") Call oControlDefs( _ "MarkupManager:Command: DWF Republish Markup Sheets").Execute End Sub iLogic / .NET version: Dim oCommandMgr As CommandManager oCommandMgr = ThisApplication.CommandManager ' Get the collection of control definitions Dim oControlDefs As ControlDefinitions oControlDefs = oCommandMgr.ControlDefinitions Call oCommandMgr.PostPrivateEvent( PrivateEventTypeEnum.kFileNameEvent, "C:\temp\test.dwf") Call oControlDefs( "MarkupManager:Command: DWF Republish Markup Sheets").Execute View the entire comment thread. Please enable JavaScript if you would like to comment on this blog. Sea