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
Solved! Go to Solution.
Solved by Daniel.Dulzo. Go to Solution.
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....
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.
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.
thanks!
this case help us solve this problem!
http://adn.autodesk.com/adn/servlet/devnote?siteID=4814862&id=13210890&linkID=4901778