Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Always Publish DWF in Express Mode

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jmockEAFCX
284 Views, 2 Replies

Always Publish DWF in Express Mode

jmockEAFCX
Contributor
Contributor

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?

 

jmockEAFCX_0-1691785549547.png

 

0 Likes

Always Publish DWF in Express Mode

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?

 

jmockEAFCX_0-1691785549547.png

 

Labels (3)
2 REPLIES 2
Message 2 of 3
Michael.Navara
in reply to: jmockEAFCX

Michael.Navara
Advisor
Advisor
Accepted 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 --

 

 

0 Likes

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 --

 

 

Message 3 of 3
jmockEAFCX
in reply to: jmockEAFCX

jmockEAFCX
Contributor
Contributor

I had to use the 62721 value from the link you posted rather than the name but that enumerator is what I needed, thanks!

0 Likes

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.

Post to forums  

Autodesk Design & Make Report