Autodesk Vault Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I am making a custom preview for a addin that is being developed. My question is, Is it possible to create a new Preview in File Menu. I am using C# as development language.
Re: Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
You can create custom commands in the File menu. You can also create custom tabs, if you want your own Preview tab.
See the HelloWorld example in the SDK.
Re: Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for Reply Doug, I have already created the custom tabs and command in File Menu as this is my second project in vault, but how do you connect to dwf and display it. I created new Form and on form load this has to be done. And add some data on dwf. Can you suggest some ideas on how to do this.
Regards
Amit
Re: Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Your problem is that somebody selects a CAD file and you want to find the DWF file for the selected file, right?
You find this out by getting the child attachments for the selected file (GetFileAssociationsByIds). The DWF file is the File object with the FileClass value of DesignVisualization.
Re: Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok, i will work out on it, but is it possible to write text on it.
Rgds
Amit
Re: Create a preview of File
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi Doug, I am getting SOAP Exception on associationArrays=Doc_....., where am i going wrong, how can i rectify this
I
ISelection selection = e.Context.CurrentSelectionSet.First();
SelectionIndex = e.Context.CurrentSelectionSet.First().Id;
SecurityService SecService = new SecurityService();
SecService.SecurityHeader = new Autodesk.Connectivity.WebServices.SecuritySvc.Secu
SecService.Url = "http://" + LocalServerName + "//AutodeskDM//Services//v17//SecurityService.asmx
SecService.SignInReadOnly("Administrator", "root123", "vault");
DocumentService Doc_Service = new DocumentService();
Doc_Service.SecurityHeaderValue = new Autodesk.Connectivity.WebServices.DocumentSvc.Secu
Doc_Service.SecurityHeaderValue.UserId = SecService.SecurityHeaderValue.UserId;
Doc_Service.SecurityHeaderValue.Ticket = SecService.SecurityHeaderValue.Ticket;
Doc_Service.Url = "http://" + LocalServerName + "//AutodeskDM//Services//v17//DocumentService.asmx
FileAssocArray[] associationArrays;
try
{
associationArrays = Doc_Service.GetFileAssociationsByIds(new long[] { SelectionIndex }, FileAssociationTypeEnum.Dependency, false, FileAssociationTypeEnum.Dependency, false, false, false);
}
catch(Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.ToString()
}

