Publishing DWF with VBA with specific iProperties

Publishing DWF with VBA with specific iProperties

Anonymous
Not applicable
600 Views
1 Reply
Message 1 of 2

Publishing DWF with VBA with specific iProperties

Anonymous
Not applicable

I am trying to automatically export an assembly to DWF using VBA. With the help of Export to DWF I managed to get this working, however I dont want to export all iProperties. After some online searching I couldn't find any solution. Inventor's built in 'Export to DWF' function allows you to only export specific iProperties:

Inventor allows you to only export centain iPropertiesInventor allows you to only export centain iProperties

Can this also be done with VBA? 

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

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Currently, Export options for DWF is listed in below table through Inventor API. Unfortunately, Inventor API does not support export DWF with specific iProperties. Please log this wish list at idea station using below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232

 

Export options for DWF
Option Name Value Type Default Value Supported Documents Notes
Launch_Viewer Long 0 Part, Assembly, Drawing,Presentation  
Publish_Mode DWFPublishModeEnum kBasicDWFPublish Part, Assembly, Drawing,Presentation  
Publish_Component_Props Boolean FALSE Part, Assembly, Drawing,Presentation Use this to publish ALL component properties 
Publish_Mass_Props  Boolean FALSE Part, Assembly, Drawing Use this to publish ALL mass properties 
Publish_All_Component_Props Boolean FALSE Part, Assembly, Drawing,Presentation Same as Publish_Component_Props 
Publish_All_Physical_Props Boolean FALSE Part, Assembly, Drawing Same as Publish_Mass_Props 
Enable_Measure  Boolean TRUE Part, Assembly, Drawing,Presentation DRM protection
Enable_Printing  Boolean TRUE Part, Assembly, Drawing,Presentation DRM protection
Enable_Markups  Boolean TRUE Part, Assembly, Drawing,Presentation DRM protection
Enable_Markup_Edits  Boolean TRUE Part, Assembly, Drawing,Presentation DRM protection
Password String "" Part, Assembly, Drawing,Presentation  
Password_Protect  Boolean FALSE Part, Assembly, Drawing,Presentation  
Password_Type  string or enum   Part, Assembly, Drawing,Presentation  
Enable_Large_Assembly_Mode  Boolean TRUE  Assembly Enables large assembly optimizations (transactions and out of process publishing) 
Output_Path  String   Part, Assembly, Drawing,Presentation  
Publish_3D_Models   Boolean FALSE Drawing Specify the publish mode.
Publish_All_Sheets  Boolean FALSE Drawing  
Include_Sheet_Tables  Boolean   Drawing  
Sheet_Count  Integer   Drawing  
Sheets NameValueMap   Drawing  
Override_Sheet_Color  Boolean FALSE Drawing Set whether to override the sheet background color.
Sheet_Color  Integer   Drawing Specify the sheet background color using an Integer. The Integer is calculated with R,G,B values(0 to 255) using below equation:
Sheet_Color = R+G*256+B*65536.
Include_Sheet_Tables Boolean TRUE Drawing Set whether to include sheet tables or not.
BOM_Structured Boolean FALSE Assembly;Presentation Set whether to publish the Structured BOM.
BOM_Parts_Only  Boolean FALSE Assembly;Presentation Set whether to publish the Parts Only BOM.
Design_Views  NameValueMap   Assembly;Presentation Specify the design views which will be published.
Positional_Representations  NameValueMap   Assembly;Presentation Specify the
positional representations 
which will be published.
Sheet_Metal_Style_Information  Boolean FALSE Sheetmetal Specify whether to publish the sheet metal style infomation.
Sheet_Metal_Flat_Pattern  Boolean FALSE Sheetmetal Specify whether to publish the flat pattern.
Sheet_Metal_Part  Boolean TRUE Sheetmetal Specify whether to publish the sheet metal part. At least one of the Sheet_Metal_Flat_Pattern and Sheet_Metal_Part should be specified as True for a sheet metal publish.
Facet_Quality  AccuracyEnum kHigh    Specify the facet quality. Only kLow, kMedium and kHigh are valid values for this.
Animations  Boolean FALSE Presentation Specify whether to publish the animations.
Instructions  Boolea FALSE Presentation Specify whether to publish the instructions. This will be ignored if the Animations is set to False.
Presentations  NameValueMap   Presentation  
iAssembly_All_Members  Boolean FALSE iAssembly Specify whether to publish all the iAssembly members.
iAssembly_3D_Models Boolean FALSE iAssembly Specify whether to publish all the 3D models for all the iAssembly members.
iAssemblies NameValueMap   iAssembly Specify which of the iAssembly members will be published.
iPart_All_Members  Boolean FALSE iPart Specify whether to publish all the iPart members.
iPart_3D_Models  Boolean FALSE iPart Specify whether to publish all the 3D models for all the iPart members.
iParts  NameValueMap   iPart Specify which of the iPart members will be published.
Include_Empty_Properties Boolean FALSE Part, Assembly, Drawing,Presentation Specify whether publish the empty properties
         
         

CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes