I am adding the code to publish DWF files for assemblies (https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-5E8D441D-0F9E-4E54-8E49-3EEA8FEE8FCE) into a macro but I want to make sure it publishes using the "Express" mode every time. Right now it generates the file based on whichever mode I used last. Anyone know if that's possible?
Solved! Go to Solution.
I am adding the code to publish DWF files for assemblies (https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-5E8D441D-0F9E-4E54-8E49-3EEA8FEE8FCE) into a macro but I want to make sure it publishes using the "Express" mode every time. Right now it generates the file based on whichever mode I used last. Anyone know if that's possible?
Solved! Go to Solution.
Solved by Michael.Navara. Go to Solution.
You need to set appropriate options for translator. Not tested, but I expect this option is in
oOptions.Value("Publish_Mode") = kCustomDWFPublish
Where value is one of DWFPublishModeEnum Enumerator
Complete set of options are described in API help. Here is a list without description
Translator: DWFx
kAssemblyDocumentObject
-- SaveCopyAsOptions --
Publish_All_Sheets 0
Publish_3D_Models 0
Launch_Viewer 1
Password
Publish_Mode 62721
Enable_Large_Assembly_Mode 0
Enable_Measure 1
Enable_Printing 1
Enable_Markups 1
Enable_Markup_Edits 1
Output_Path
Include_Sheet_Tables 1
Sheet_Metal_Flat_Pattern 0
Sheet_Metal_Style_Information 0
Sheet_Metal_Part 1
Weldment_Preparation 0
Weldment_Symbol 0
BOM_Structured 1
BOM_Parts_Only 1
Animations 0
Instructions 0
iAssembly_All_Members 0
iAssembly_3D_Models 0
iPart_All_Members 0
iPart_3D_Models 0
Publish_Component_Props 1
Publish_Mass_Props 1
Include_Empty_Properties 0
Publish_Screenshot 0
Screenshot_DPI 96
Facet_Quality 69379
Force_Facet_Recompute 0
Facet_Recompute_Tolerance 0,001
Override_Sheet_Color 0
Sheet_Color 0
Sheet_Range 14081
Custom_Begin_Sheet 1
Custom_End_Sheet 1
All_Color_AS_Black 0
Remove_Line_Weights 0
Vector_Resolution 400
TranscriptAPICall 0
-- OpenOptions --
-- NO OpenOptions --
You need to set appropriate options for translator. Not tested, but I expect this option is in
oOptions.Value("Publish_Mode") = kCustomDWFPublish
Where value is one of DWFPublishModeEnum Enumerator
Complete set of options are described in API help. Here is a list without description
Translator: DWFx
kAssemblyDocumentObject
-- SaveCopyAsOptions --
Publish_All_Sheets 0
Publish_3D_Models 0
Launch_Viewer 1
Password
Publish_Mode 62721
Enable_Large_Assembly_Mode 0
Enable_Measure 1
Enable_Printing 1
Enable_Markups 1
Enable_Markup_Edits 1
Output_Path
Include_Sheet_Tables 1
Sheet_Metal_Flat_Pattern 0
Sheet_Metal_Style_Information 0
Sheet_Metal_Part 1
Weldment_Preparation 0
Weldment_Symbol 0
BOM_Structured 1
BOM_Parts_Only 1
Animations 0
Instructions 0
iAssembly_All_Members 0
iAssembly_3D_Models 0
iPart_All_Members 0
iPart_3D_Models 0
Publish_Component_Props 1
Publish_Mass_Props 1
Include_Empty_Properties 0
Publish_Screenshot 0
Screenshot_DPI 96
Facet_Quality 69379
Force_Facet_Recompute 0
Facet_Recompute_Tolerance 0,001
Override_Sheet_Color 0
Sheet_Color 0
Sheet_Range 14081
Custom_Begin_Sheet 1
Custom_End_Sheet 1
All_Color_AS_Black 0
Remove_Line_Weights 0
Vector_Resolution 400
TranscriptAPICall 0
-- OpenOptions --
-- NO OpenOptions --
I had to use the 62721 value from the link you posted rather than the name but that enumerator is what I needed, thanks!
I had to use the 62721 value from the link you posted rather than the name but that enumerator is what I needed, thanks!
Can't find what you're looking for? Ask the community or share your knowledge.