Quantcast
Channel: Manufacturing DevBlog
Viewing all articles
Browse latest Browse all 516

AddDesignVisualizationAttachmentBadAttachmentOrder error

$
0
0

By Wayne Brill

When using AddDesignVisualizationFileAttachment() to attach a DWF to an IDW this error may occur.

The error means the call is trying to create “out of order” DWFs

For example let’s say a file has 4 versions, where version 1, 2, & 4 have a DWF, and you want add a DWF to version 3.

 

Starting out, the data could look something like:
F(1) -> DWF(1)
F(2) -> DWF(2)
F(3)
F(4) -> DWF(3)

 

Vault does not allow DWF(4) to be an attachment to F(3) since that would be confusing so a AddDesignVisualizationAttachmentBadAttachmentOrder exception is thrown.

 

What Vault Explorer does in that situation is to download DWF(1), DWF(2) and DWF(3), delete the DWF entirely, and then re-create the versions so that the end result will look like:
F(1) -> DWF(1)
F(2) -> DWF(2)
F(3) -> DWF(3)
F(4) -> DWF(4)


Viewing all articles
Browse latest Browse all 516

Trending Articles