Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AddDesignVisualizationAttachmentBadAttachmentOrder

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
FRFR1426
252 Views, 4 Replies

AddDesignVisualizationAttachmentBadAttachmentOrder

I've got this error sometimes when I call AddDesignVisualizationFileAttachment. What does it means?

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
4 REPLIES 4
Message 2 of 5
wayne.brill
in reply to: FRFR1426

Hi,

 

I am not finding any other documentation on that error. Can you tell me more about what you are doing when that error occurs?  ( error 1125 )

 

Are you using AddDesignVisualizationFileAttachment()? If so is are you adding a DWF file to the design document *after* both the design document and the DWF file exist in Vault?   

 

This blog post may be helpful.

http://justonesandzeros.typepad.com/blog/2010/11/attachments-and-dependencies-faq.html

 

 

 

Thanks,

Wayne

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 5
FRFR1426
in reply to: wayne.brill

Yes I'm using AddDesignVisualizationFileAttachment to attach a DWF to an IDW. IDW and DWF exists in Vault. This works most of the time but sometimes it fails with this error.

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 4 of 5
FRFR1426
in reply to: FRFR1426

It seems that the error is triggered when the main file is not the latest version. You can not attach a visualization file on a version which is not the latest.
Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr
Message 5 of 5
wayne.brill
in reply to: FRFR1426

Hi,

 

I asked a colleague in engineering about this. Here is an excerpt of their reply. (I believe it collaborates what you found).

 

>> >>


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)


<< <<

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report