Disable BOMs of a 3D-model in a DWF

Disable BOMs of a 3D-model in a DWF

Anonymous
Not applicable
744 Views
5 Replies
Message 1 of 6

Disable BOMs of a 3D-model in a DWF

Anonymous
Not applicable

Hello,

 

I'm writing a small tool for Inventor 2012 in VB.net, using the TranslatorAddIn, to export a drawing and its 3D-model to DWF. Unfortunately, when I export the drawing of an assembly, the BOM of the model is included as well, wich I would like to disable.

 

The options "BOM_Structured" and "BOM_Parts_Only" seem to work only if I export the 3D-model, not the drawing...

 

Does anyone know if there is a way to access the properties of the included 3D-model?

 

Thanks in advance.

0 Likes
Accepted solutions (2)
745 Views
5 Replies
Replies (5)
Message 2 of 6

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

There is not such option to disable BOM exporting currently. Sorry if this is bad news for you.

0 Likes
Message 3 of 6

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution
Message 4 of 6

Anonymous
Not applicable

Thank you for your reply.

 

The workaround you suggest works fine. Unfortunately, I have another problem now:

 

In our company, we use Vault. The changes in the assembly dirty the document, so you'd need to check-out the file.

 

I attached a file with a solution, using a ChangeProcessor to disable the BOMs, and undo the changes using the TransactionManager.

 

By setting the ChangeType of the ChangeProcessor to "kQueryOnlyCmdType", the document is considered "not dirty" after undoing the transaction, so at the end, all documents (The drawing and the assemblies) are in their initial state, i.e. not dirty.

 

When disabling the BOMs, though, the user is still prompted to check-out the file.

 

Is there a way to temporarily disable the Vault-messages? Or another way to "hide" the changes from Inventor?

0 Likes
Message 5 of 6

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution
Hi Roland,

I don't think we have much control over the vault AddIn.
Two things I can think of:
1) try to unload the vault addin
2) or just create a copy of the drawing and work with that instead
Cheers,


Adam Nagy
Autodesk Platform Services
Message 6 of 6

Anonymous
Not applicable

Hello Adam,

 

I didn't think of this. I tried your first suggestion, and it works like a charm.

 

I will mark Xiadon Liangs post as solution, since it solves the problem of my initial post, but I'd mark yours too if it were possible... (Didn't know that it actually IS possible Smiley Wink)

 

Thanks for your help!

0 Likes