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: 

Vault fileid and Thin Client hyperlink

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
gary.belisle
2038 Views, 9 Replies

Vault fileid and Thin Client hyperlink

I've been tasked with creating a custom Vault extension that will create a hyperlink to the viewable file in the Thin Client browser. This will take you right to the vizualization file when you click the hyperlink.

 

Example: "http://yourservernamehere/autodeskdm/webclient/Forms/DwfFileView.aspx?fileid=560002312703"

 

The intended use is to copy this link into other documents. So in Vault, I right click on a file, and run the command. The command copies this hyperlink to the clipboard so it can then be pasted into another program.

 

I have some reservations doing this. For one, does the fileid stay persistant? Will it ever change? I want to avoid having to go back and update a bunch of dead links in the future.

 

Is there an alternative to the fileid? Keeping in mind this is to be opened via Thin Client, not the Vault Client.

 

 

---------------------------------------------------------------------
i7-4800MQ Dell Precision M6800, Win 7 Enterprise 64-bit, 16GB RAM
Autodesk Product Design Suite Ultimate 2015
Autodesk Vault Professional 2015
PLM 360
9 REPLIES 9
Message 2 of 10
Redmond.D
in reply to: gary.belisle

There is already an app that does what you want, Hyperlink Maestro.  But it hasn't been updated since Vault 2012.

 

The app supports links to the thin client, among other things.  You might find it easiest to just grab the source code and update to the version of Vault that you are using.  Or you can just use the code as a reference.

 

 

Regarding the file ID, you are correct to have doubts.  File IDs are not guaranteed to be persistant, but it's unlikely that they will change.  Another problem is that the IDs are to a specific version of a file.  So if the file gets updated, the link still points to an older version.  If the version gets purged, then it would result in a broken link.

 

At the moment, file ID is the only way to link to a file in the thin client.  There is not a more stable form of link.



Doug Redmond
Software Engineer
Autodesk, Inc.

Message 3 of 10
gary.belisle
in reply to: Redmond.D

Thanks Doug,

 

Your Hyperlink Maestro is very cool. That will work great for emailing links to files for quick communication. However, I'm not going to use the links to insert into our ERP system or other documents en-masse if they will not remain static.

---------------------------------------------------------------------
i7-4800MQ Dell Precision M6800, Win 7 Enterprise 64-bit, 16GB RAM
Autodesk Product Design Suite Ultimate 2015
Autodesk Vault Professional 2015
PLM 360
Message 4 of 10
Redmond.D
in reply to: gary.belisle

If you don't know about the Persistent ID feature, then have a look at this article I just posted.  You can't use these IDs in hyperlinks, but it does give you a reliable way to store a reference to a Vault entity.



Doug Redmond
Software Engineer
Autodesk, Inc.

Message 5 of 10
gary.belisle
in reply to: Redmond.D

Thanks Doug.

 

Your articles are always helpful for me.

 

In theory, could a vault exe app be created using the persistant ID as a command line argument in order to look up the FileID and then launch a hyperlink string directly in a web browser?

---------------------------------------------------------------------
i7-4800MQ Dell Precision M6800, Win 7 Enterprise 64-bit, 16GB RAM
Autodesk Product Design Suite Ultimate 2015
Autodesk Vault Professional 2015
PLM 360
Message 6 of 10
Redmond.D
in reply to: gary.belisle

Yes you would write the app.  However, it would need to log in to Vault and stuff.



Doug Redmond
Software Engineer
Autodesk, Inc.

Message 7 of 10
gavbath
in reply to: Redmond.D

Hi guys,

 

Just thought I'd mention that we will very soon be updating Hyperlink Maestro for 2015 (with persistent ids) and it will be available on the Autodesk Vault App Exchange.

 

Cheers, Gav

Gavin Bath
MFG / CAM Technical Specialist
Design and Motion Blog
Facebook | Twitter | LinkedIn | YouTube


   

Message 8 of 10
jeamy.baena
in reply to: gavbath

Hi, Gavin

 

Excellent news!.

 

The persistent id feature it will be very helpful. I have the same issue here.

Will you update this app. to Vault 2014 version with this feature or only for Vault 2015?

 

Please let us know when this application is launched!

 

Thanks!

 

 

Message 9 of 10
Maxim-CADman77
in reply to: Redmond.D

I woner if there a way to generate not a direck ink but rather link to advanced find results (ex. file by name as EQUAL).

I see it is not a problem to generate basic search iquery as an url but what about advanced? 

Message 10 of 10
Boorda
in reply to: Maxim-CADman77

@Maxim-CADman77, that is a great idea. Most sites that I use that are related to pulling info from a database have features built in that users can specify a field by name or id and query info via the URL. I have a situation right now where in an enterprise environment we have several systems that need to hook into Vault to pull released drawings. Our integration would be so much simpler if all we had to do was dynamically build a URL including a file name or id that the Vault thin client could query. Please, Please give us that feature.


Automation is key!

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

Post to forums  

Autodesk Design & Make Report