Vault Customization

Reply
Employee
Redmond.D
Posts: 796
Registered: ‎12-12-2006
Message 11 of 19 (361 Views)

Re: Update Attachment

02-04-2013 09:44 AM in reply to: amitk_189

You have the DWG file and the DWF file. Now you have to add the link between the two, which is what AddDesignVisualizationFileAttachment does.

 

The first parameter is the ID of the parent file, which is the DWG.  The second parameter is the association to the child DWF file.  For the second parameter, create a new FileAssocParam class and fill in all the fields except for RefId and Source.  You can leave those null.

CldFileId is the ID of the DWF file.  ExpectedVaultPath is the full path to the DWF in Vault.  Typ should be Attachment.

 

 



Doug Redmond
Software Engineer
Autodesk, Inc.
http://justonesandzeros.typepad.com/

Mentor
amitk_189
Posts: 233
Registered: ‎12-15-2011
Message 12 of 19 (358 Views)

Re: Update Attachment

02-04-2013 08:24 PM in reply to: Redmond.D

Thanks for the reply, i will work on it and later get back to you.

 

 

With Warm Regards

Amit

Mentor
amitk_189
Posts: 233
Registered: ‎12-15-2011
Message 13 of 19 (339 Views)

Re: Update Attachment

02-05-2013 09:33 PM in reply to: amitk_189

Hi Doug,

 

The problem still persists.

 

1) i check out the dwf file.

2)When its copied to local system, i make some changes.

3)I check in the file to vault

4)Then i execute AddDesignVisualizationFileAttachment with all paramaters you specified, yet there is no connection between dwg and dwf. The associativity is lost between two files.

 

 

 

Mentor
amitk_189
Posts: 233
Registered: ‎12-15-2011
Message 14 of 19 (316 Views)

Re: Update Attachment

02-06-2013 09:35 AM in reply to: amitk_189

Hi Doug,

 

Thanks for information, it worked. The information you provided played a crucial role in completion of project.

Thanks for Guidance.

 

Best Regards

Amit

 

Distinguished Contributor
noontz
Posts: 110
Registered: ‎03-21-2007
Message 15 of 19 (208 Views)

Re: Update Attachment

05-31-2013 06:53 AM in reply to: Redmond.D

This works fine if I stick to the naming convention e.i., "part1.ipt" / "part1.ipt.dwf"

 

But using a custom naming scheme for the designvisualization e.g.,  "part1_test.ipt.dwf" breaks the link to the preview pane.

 

Is this the expected behavior or am I missing something?

 

( Vault Basic 2013 )

Mentor
amitk_189
Posts: 233
Registered: ‎12-15-2011
Message 16 of 19 (200 Views)

Re: Update Attachment

05-31-2013 09:49 PM in reply to: Redmond.D

Hi noontz,

 

I never tested with different naming conventions, till today i tested with the same naming conventions as customer requirement and the behaviour is not known to me.

 

I will test the same this weekend and reply the same to you.

 

 

Best Regards

Amit

Distinguished Contributor
noontz
Posts: 110
Registered: ‎03-21-2007
Message 17 of 19 (186 Views)

Re: Update Attachment

06-03-2013 11:31 PM in reply to: amitk_189

Hi Amit

 

Thanks for your reply & interest. Did you hit the same limitations? My assumption is, that the preview pane is restricted to the specific namingconvention.

Mentor
amitk_189
Posts: 233
Registered: ‎12-15-2011
Message 18 of 19 (178 Views)

Re: Update Attachment

06-04-2013 04:29 AM in reply to: Redmond.D

Hi noontz

 

I tested the same and its working fine. As far as the you explicitly attach the dwf/dwfx file to dwg/ipt, it works fine.

 

Just make sure the extensions are right and you are attaching the dwf to ipt/dwg properly. Even a minor bug does not attach the dwf to dwg/ipt.

 

 

With Best Regards

Amit

 

 

Distinguished Contributor
noontz
Posts: 110
Registered: ‎03-21-2007
Message 19 of 19 (174 Views)

Re: Update Attachment

06-04-2013 05:39 AM in reply to: amitk_189

Hi Amit.

 

Big thanks for your efforts!

I´m using AddDesignVisualizationFileAttachment as suggested by Doug after both files are checked-in. Everything looks right & no "bugs" as far as I can see. It´s just the preview pane I can´t seem to "syncronize", when I´m using a custom naming scheme?. Guess I´ll need some more try & error to get it right :smileysad:

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community