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: 

AutoCAD 2D DWF Questons of Vault

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
rick_hgy
971 Views, 4 Replies

AutoCAD 2D DWF Questons of Vault

We want to control the DWF file view as the 2.png file, not the auto generate with 1.png. because sometime we need to view those DWF file in webpage.

 

We can check in DWG file to vault by program, including generate the DWF file automaticaly. but we didn't know the relationship of those two format.

 

Question 1: how to check in DWG and it's DWF file to vault, keep those two file relation and make sure when select on dwg file in Vault, the preview is correct.

Question 2: can we change the background of DWF viewer from white to Black?

 

any input is highly appreciated!

 

Rick

 

 

 

 

4 REPLIES 4
Message 2 of 5
Daniel.Dulzo
in reply to: rick_hgy

Hi Rick,

 

The preview file used by Vault is determined by checking for a special "visualization attachment" file relationship. You can create this file relationship yourself through the SDK when adding a new file to Vault. It basically involves adding the visualization file to Vault with some special properties and then telling Vault about the relationsihp between the visualization file and the design file.

 

As a best practice, the visualization file should be added to Vault with the same filename as its design document but with the ".dwf" extension appended. All visualization files should be added to the Vault as hidden files and the File classification should be set to DesignVisualization. To create the relationship, call AddDesignVisualizationFileAttachment to link the visualization file to the design document after both the design document and the visualization have been added to Vault.  Some more information about file relationships and attachments can be found here: http://justonesandzeros.typepad.com/blog/2010/11/attachments-and-dependencies-faq.html.

 

As far the changing the background color of the DWF preview goes, I believe this discussion thread has the answer: http://forums.autodesk.com/t5/Autodesk-Vault/Change-background-color-on-autocad-dwf-preview-in-vault....



Daniel Dulzo
Software Engineer
Autodesk, Inc.
Message 3 of 5
rick_hgy
in reply to: Daniel.Dulzo

Two other questions:

 

1.  Same rule for inventor and Pro/E for DWF preview?

2. Files relationship tracking rule for Vault? if we want to check in inventor or Pro/E file to Vault, how to keep the model/drawing structure, it's should have some rule for 3D product.

 

 

Message 4 of 5
Daniel.Dulzo
in reply to: rick_hgy

I'm not sure if I understand your question fully, but if you're worried about how to create the correct file relationships when adding an assembly or other design data to Vault, I would suggest using appropriate add-in to do this. The add-ins will keep the correct structure of the files and you should be able to opt not to generate visualization files on check-in. You can then use your own custom tool to create and attach the visualization files that you want.



Daniel Dulzo
Software Engineer
Autodesk, Inc.
Message 5 of 5
rick_hgy
in reply to: Daniel.Dulzo

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

Post to forums  

Autodesk Design & Make Report