Can you access files in EPDM via a hyperlink address?

We have a MS Word document that contains hyperlinks to all the source documents that make up our Design History File (DHF).  Kind of like a table of contents.  Currently, the source documents are stored on a web-based server similar to MS SharePoint.  We want to move the source documents into EPDM.  Is there a way to define hyperlink pointers to documents once they are in EPDM?

Thank you,

Dave

SolidworksSolidworks Pdm enterprise Pdm
Answers 81
SF
SF 2009-08-11 Best Answer

Yes.

If you're using the SMTP for EPDMs messaging system, you'll notice that links in the email start with "conisio://". The protocol is registered on client machines, so a user will have to have the EPDM client installed for the links to work.

The links have the following format:

conisio://vaultname/explore?projectid=856&documentid=45998&objecttype=1<br>

It will also take some ingenuity to get the various ID's of the items required for the link. If you'd like I'll write a plugin that will allow you to copy a link for a selected item to the clipboard.

DD
DD 2009-08-11

Lee,

Thank you for the quick response.  We do use SMTP for our EPDM messages and I can see the conisio://vaultname/open?.....link.  When I added this link to our MS Word DHF index file and then clicked on it, it went straight to the document in the vault and opened in exactly the manner I was looking for.

At this point, I really don't know how to obtain the information that makes up the link such as the projectid, documentid, etc

(Example: open?projectid=1014&documentid=86270&objecttype=1).  A plugin that would copy that information to the clipboard so that I could then add the link to the WORD document would fantastic!  So, if you can write the plugin, that would be great!

Thanks again,

Dave

JG
JG 2009-08-11

Hi Lee -

There is a solution that does this already (included) :

Best Regards,

Joy

SF
SF 2009-08-11
Awesome! Saves me from having to write it! (Even though I was almost done, grumble grumble.)

Is there somewhere online one can browse for existing add-ins for EPDM?
DD
DD 2009-08-11

WOW... This is outstanding.  I love this forum.  Thanks to both Joy & Lee!

Dave

JC
JC 2009-08-11
Maybe people can start posting their add-in's on 3d content central?
SF
SF 2009-08-11
I've included what I made just for the heck of it. While it is the exact same functionality as the one Joy posted, maybe someone out there can use the source.
SF
SF 2009-08-20

Hi can you please explain how to add this in as I have just been asked if this is possible by one of our users

Thanks in advance

JG
JG 2009-08-20

Hi Paul,

Are you the admin? If so, can you tell me which add-in sample you downloaded? Mine or Lee's?

Also, are all your clients 32-bit?

Cheers,

Joy

DD
DD 2009-08-20

Taking this one step further.

Our "use case" for this is that we maintain an MS Word file for our Design History File Index (DHFI).  Before EPDM, our project coordinator manually created the file which was very time consuming.  At regular stages in our design control process, this MS Word file is reviewed, approved and Rev-controlled.

Now, with what we are proposing with EPDM, we are getting very close to being able to automatically create our DHFI which would be a tremendous time saver.

With EPDM, we would do the following:

1.     Perform a search on our Product's DHF files located in EPDM.  Our search columns are configured to match our existing DHFI.  (Data cards have been configured to record the information that we include in our DHFI).

2.     Export the search results out to an Excel Spreadsheet

3.     Using the "Copy as shortcut" add-in, we insert the hyperlink into the appropriate cell of the spreadsheet for each document to enable a viewer of our Design History File Index to click on any document that is listed and go straight to the EPDM vault and open the file.

Step 3 above is still a manual and time-consuming process since our DHFI may have hundreds of documents listed.  Every time we needed to create a new revision of the DHFI, we would have to go back and regenerate new links since the documents themselves may have been revised and the link would need to point to the latest revision of the document.

So, (and I am sorry for the long set-up to this)....Is there a way to add a variable to our data card (read-only) such as "File Hyperlink" that would extract the same hyperlink information that the "Copy as shortcut" add-in is generating.  If we could extract that, then we we do a search to generate our Excel file, we would add the column "File Hyperlink" and this would get exported out to excel and we would eliminate the manual step of copying the links.

Thanks,

Dave

SF
SF 2009-08-20

Add the variable 'FileHyperlink' to your file cards. Add the attached add-in. Upon checkin, the add-in will write the string you're looking for to the variable. You can then use the Hyperlink() function in Excel to format the cell. (It would nice if Dispatch or EPDM gave access to the file and folder id's natively, but unless I am missing something, an add-in is the only way to do this.)

DD
DD 2009-08-20

Lee,

Worked just like you said!

(I wish I could do stuff like that)

Thank you very much.

Dave

SF
SF 2009-08-21

Hi Joy,

I am the admin (for all my sins) and all our clients are 32bit, I downloaded your example for no better reason than I came across it first :-)

JG
JG 2009-08-21

Hi Paul -

The attached video will show you how to load the add-in.

Cheers,

Joy

PP
PP 2009-11-05

is there anyway to get this modified so instead of having conisio://vault_name/explore?projectid=1308&documentid=1445&objecttype=1 to have it generate the link with the view command - such as conisio://vault_name/view?projectid=1308&documentid=1445&objecttype=1

so it opens the file for viewing?

SF
SF 2009-11-05

In the post below I attached the source code for the add-in. Edit the constant conisioString, rebuild, and deploy.

If you don't have Visual Studio, let me know and I'll edit for you.

SF
SF 2009-11-19

Hi Joy,

Is there a way to install this functionality on a per machine basis?  Probably not, but from experience, me and add-ins in EPDM do not get along.

Thanks,

Lucas

SF
SF 2009-11-19
Sounds like a good idea for an enhancement request. I don't think there is a way to install an add-in on a per machine basis. However, you could limit what hooks are added based on what user is running the add-in though.
ML
ML 2010-06-21

Hi

thats really a great tool!!!

Can you tell me if there is a way to create a link referring to a specific Version of a file?

Or does anyone have a list of all possible parameters for conosio?

Thank you in advance.

BR

Manuel

BD
BD 2010-06-22

Does anyone know if these hyperlinks can be used to make Desktop shortcuts, or Windows Explorer shortcuts?

B-

JS
JS 2010-06-22

You can make Internet shortcuts on your desktop or in a directory.

BD
BD 2010-06-22

Ahh, so if I created a hyperlink using this method which points to a file in the vault, and I created a shortcut from this hyperlink in a location which is outside the vault, then when I selected this shortcut as the file to insert into an assembly, the assembly would actually contain the target file which is in the vault, right?

B-

JC
JC 2010-10-28

Has one gotten this to work in 2010? I see the menu option but when I paste into an email or word document, nothing happens. If I open the Enterprise emailer and start a new message, it copies there fine.

SF
SF 2012-08-29

Does anyone know if any of these solutions are relevant to EPDM 2012?

I'm trying to display a hyperlink to the location of a project's epdm folder inside of sharepoint.  I use a sharepoint dashboard to display high level project information.

SF
SF 2012-09-04

The file in EPDM is encrypted and stored by a unique directory/folder number and file number. The link used, as was posted earlier conisio://vaultname/explore?projectid=856&documentid=45998&objecttype=1 but this opens a link to the folder. I tried to modifiy the "explore" to "view". It worked but the addin needed to be rebuilt so it could get added into EPDM with the administrator tool. It only opened the file in the built in viewer in EPDM. I then modified the line to "open" and rebuilt the addin. The link will now open any file in EPDM with the default application. The two dlls are attached. These can be used to link to any file in EPDM. The user has to have the EPDM client installed. Thanks to all that contributed. Please post any issues or success.

SF
SF 2012-09-05

I'm trying to get the project FOLDER to open.  I know how to link to specific files in EPDM.

When I open EPDM and the project folder is displayed, I can shift+right click the folder and click "Copy as Path" to get the folder path.  I then paste this folder path into share point so that it looks like this:

file://C:/VaultName/ProjectsFolder/ProjectsName

I click ok to apply this link in the sharepoint entry and am returned to the sharepoint entry viewer page.  However, clicking the hyperlink I just created does nothing.  I don't get transfered to a 404 or 403 page, no blank tab opens, no error pops up....nothing happens at all (unless I am killing kittens randomly on the other side of the world every time I click it...sorry kitties).

JS
JS 2012-09-05

Using native links like that to the vault, will cause you problems when the client does not have the file/folder in his local cache.

SF
SF 2012-09-05

Brett,

The original addin post will open the file location in the vault. If you wanted to link to a project folder you could link to any file in the folder and the contents of the folder would come up. Like opening the folder in explorer.  The link conisio://vaultname/explore?projectid=856&documentid=45998&objecttype=1 is generated by the original posted addin and opens the file location.

If you change Explore? to View?, it opens the file in the EPDM FileView. If you change it to Open? if opens the file in the application defined for the file type, Ex Solidworks for .slddrw.  I tried using the addin to link to the folder itself and it does not work. It may work with some more tweaking.

TI
TI 2012-09-06

Hi guys.

the examples discussed above rely on using the "Conisio://" HTML links, similar to what links in Enterprise PDM notifications are using.  What happens behind the scenes is that when an EPDM client is installed, we register the "Conisio://" as an URL protocol in the registry.  When the link is clicked the URL will launch an executable called "ConisioURL.exe" with some arguments, such as what File ID it is supposed to handle and what action it should do (open, browse to etc).

The ConisioURL application is only designed to process files, not folders, so it cannot be used as a "project" browse to link unless there is a file involved.

If you want an alternative approach to sending links to EPDM files or folders, I made a small API application example that is available in Knowledge Base solution S-051851.   It is essentially an exe application that also registers a custom URL protocol, but you can feed it with filepath to folder or file instead of having to use the DocumentID's.    Worth a try if you are into this stuff

-Tor, EPDM support.

MS
MS 2012-09-27

How do I install this add-in?  Will it work with EPDM 2012?

SF
SF 2012-10-05

Wow, I know this is an old thread, but it is still relevant.  I've downloaded the Copy Shortcut addin and tried installing it.  I get the following message…

I'm running SolidWorks ePDM 2012 on a 64-bit machine and have Dispatch64 installed.  Any ideas as to what I've missed?

Joe

comment imagecomment image
TI
TI 2012-10-05

Multi-select (ctrl-click) both files at the same time before clicking open.  A VB .Net add-in consist of the add-in dll and an Interop.EdmLib.dll file, so you need to select both to load it.

-Tor

SF
SF 2012-10-05

Thanks for the quick reply Tor!  Yep, tried that.  I tried every combination with the same results.

JG
JG 2012-11-07

Joy,

  I tried installing the copy shortcut addin.  It appeared to load OK (see attached screen shot).  There is a "Copy as shortcut" item in the right click menu.  However, if I try to paste the shortcut into a windows application (Outlook, Word etc), th pase option is not available.  Using "Paste special" only gives me the option of HTML format, but nothing gets pasted.  Did something in Enterprise change so that this no longer works.  I am running Enterprise 2012 SP2 on Windows 7 64-bit

comment imagecomment image
BD
BD 2013-04-04

This appears to be an old version of the addin that won't work with later versions of EPDM.  Would it be possible to get an updated version that will run in EPDM 2012?  Apparently this version doesn't implement the later version of the IEdmAddIn interface.

GR
GR 2013-04-05

Attached is a Modified version. It will add a "Copy Link" option to your RMB menu. It will copy both files and folders and you can do a multi select. When you "paste" the links, files will have the full file name (ex. Part.sldprt or mydoc.doc) and folders will just be the folder name, not the full path.

I have to give a big thanks to C.S. Lee for posting his code!

BD
BD 2013-04-05

Unfortunately, this version still gives the same error.

Shouldn't be rocket science, should it?  That would let me out... I'm still trying to grasp the whole 'gravity' thing!!

comment imagecomment image
JG
JG 2013-04-05

Greg,

  Thank you, Thank you, Thank you!  Works perfectly.  You have solved a long standing source of hair-pulling and gnashing of teeth!

BD
BD 2013-04-05

What version of EPDM are you using, Jonathan?  We're on EPDM 2012 sp4 and keep getting the error message I posted above.  You're not having any trouble installing it?

JG
JG 2013-04-05

Brian,

We are using 2012 SP 2

I had no problems installing the add-in.

Sorry! 

comment imagecomment image
JG
JG 2013-04-05

Brian,

  Do you have the SWTaskAddIn and Dispatch add-in installed?  If not, then this might make a difference.  Just a suggestion.  I have both these installed.  I know that some users have reported getting this error when theytry to copy a working add-in over to a different vault, which implies that it is not necessarily a problem with the add-in itself.

BD
BD 2013-04-05

Yeah, I have those installed as well.  I'll take this to a different thread.

GR
GR 2013-04-05

no problem! We are running 2012 sp4.

Brian, Do you have any other custom addins running. If so, this may be the problem. In the past, I've ran into issues with addins using different builds of the Interop.EDMLib.dll.

Check to make sure all the versions of all your addins are using the same version of the .dll

BD
BD 2013-04-05

I just have the dispatch and task addins installed.  no idea what version of interop they use.

GR
GR 2013-04-05

5.15 is the version of the Interop.edmlib.dll file (I believe this is 2012). The previous Zip had an Old .dll... my bad; try this one

I take that back. The previous file was ver 5.15... guys I'm not sure what's going on.

Message was edited by: Greg Rupp

BD
BD 2013-04-08

Still no workie... perhaps if you shared the source someone knowledgable could ferret out the problem?

LY
LY 2013-04-08

Rename the class that implemenyts the IEdmAddin5 interface. (From "Addin" to something else in this case.) Recomplile and redistribute.

GR
GR 2013-04-08

Here you go! Happy programming

This source incorperated Lee's suggestion of renaming the class.

GR
GR 2013-04-08

Per Lee's suggestion... see attached

MS
MS 2013-08-20

Hi everyone, this thread was really helpful, i now wonder:

Is the possibilities with ConisioURL.exe written in a document somewhere?

Like what arguments it can handle?

I'm looking for something that can set a static hyperlink to a specific version of a document.

TI
TI 2013-08-20

Hi Martin,

the ConisioURL.exe is fairly restricted in what arguments it can take.  Its used internally by the various links you have in EPDM notifications, so the use cases are those same ones that notifications support.

You can find more details on the arguments supported in KB solution S-018024.

In short these are the arguments available:

open – Opens the file in associated application

view – Opens the configured “Viewer” application for the file

explore – Opens an explorer window in the folder the file resides and selects the file

get – Triggers a Get of the file to the local file vault view

lock – Checks out the file

properties – Brings up the file properties

history – Brings up the file history

And now that I look closer at the get command, it seems you can actually feed the argument with a version number as well.

So the URL to get a specific version of a file would be:

conisio://{VAULTNAME}/get?projectid={PROJECTID}&documentid={DOCUMENTID}&objecttype=1&version={VERSION}

where (without the brackets):

{VAULTNAME} = Name of the vault

{PROJECTID} = ProjectID of folder containing file

{DOCUMENTID} = DocumentID of the file

{VERSION} = Version to get



-Tor

MS
MS 2013-08-21

Tor,

Thank you so much, this is fantastic stuff!

I have tested with both Get and Open, and Get will get the file you need, always.

Open, however,  will be confused if the version you try open differ from the version you have cached and the latest. If you have cached version 4, the hyperlink wants to Open version 8, and the vault contains 10 versions, you will be warned that there is a newer version of the file in the vault, and whether you want to get it. If you choose No, you will keep version 4, if you choose Yes, you will get version 10.

Best Regards

Martin

IP
IP 2013-10-23

This thread is very good. as a newbie admin, I just learned a lot.

Does anyone have an add-in similiar to the ones postet here by Joy and Lee, that opens the file itself and not just the containing folder?

I uderstand the only difference is replacing the explore? with open?, but since i'm not a programer, i havn't got a clue how to edit the add-in.

thanks

GR
GR 2013-10-23

Take a look at the modified version I posted a while back. It will open the file if it's a link to a file and it will open a folder if it's a link to a folder.

Greg

IP
IP 2013-10-23

Thanks Greg,

I just downloaded and tried it but i get an error message:

"Please select at least one DLL..."

Am I doing something wrong?

1. I added the two DLL files to the vault and checked them in.

2. Opened EPDM administration -> Add-ins -> New add-in

3. Browsed to the files and selected both

4. Hit open

comment imagecomment image
IP
IP 2013-10-23

Forgot to mention I used the rename class version

SF
SF 2014-02-25

Hi Lee Young,

Thanks a lot, your given approach is really useful for us.

I have one question here, Can we open Folders like that ? what will be projectid and documentid in that case ? Please respond.

Thanks in advance,

Regards,

Asha

CC
CC 2014-07-16

What does it take to get this to run in EPDM 2014 SP2? I am getting the same error Brian had before.

SF
SF 2014-12-29

I second this request. Why doesn't EPDM ship with this 'simple' feature?

Also, when right click "Notify...A Colleague" is used, shouldn't this include a hyperlink as well? Outlook is currently set up for the message system, but this uses the database notification system still.

LY
LY 2014-12-30

I have found that using a cex usually gets around the various problems with add-ins and trying to add dlls.

Edit : removed attachment and link to code. Found others selling my add-ins that I provided for free.

DY
DY 2016-02-09

I have some software colleagues that would like to embed the hyperlink for EPDM documents into their software revision tracking software.  Looks like the earlier add-in posted by Joy no longer works in SW2015.  Does anyone have a solution that is currently working?

CS
CS 2016-02-09

This maybe... I just recompiled the sources

SF
SF 2016-02-17

Hi Charley, I just downloaded to test but I get the "The Archive Server could not open the Windows Registry" error. Is this related to the IEdmFile as per the following thread?

TW
TW 2016-02-17

Charley,

Load the addin into your vault and just export the addin so these guys can import it. Then zip that export file and upload it here. Then the users who want it can import it into their vault. I've run into this error many many times and it makes me nauseous. The only fix is to export it. Everyone will be able to import it and no functionality will be lost, plus no errors opening the registry.

Tim

CS
CS 2016-02-17

Try that

SF
SF 2016-02-17

Thanks, that imports and gives me a menu option as it should. However the "Copy as shortcut" button doesn't copy anything to the clipboard (same result after removing any non-essential addins and importing again, plus testing on a different user / computer). Don't go to any effort to fix it if its just me having issues though, I have another addin that will do the job (its just a little awkward and over-complicated).

SF
SF 2016-02-17

Just an update for anyone looking at this now, this works perfectly for me with EPDM 2015 SP4 (although there might be some formatting issues, the html sub-menu doesn't copy anything to clipboard, the url sub-menu appears to generate html links, and the top level menu has the buttons that generate the conisio url...?

CS
CS 2016-02-18

I loaded it up and get the same issue, no idea why as it appears to generate the link correctly. Might just be a problem with accessing the clipboard.

CS
CS 2016-02-18

Try this one, it's a bit dumber but will hopefully get you what you want

SF
SF 2016-02-18

That works Charley, although the links generated are to "explore" and in html format. I'm after just the plain conisio url with "open" (I realise I hadn't clarified that). If you're able to adjust it to do that then that would be awesome but if not no worries.

CS
CS 2016-02-18

Try that

SF
SF 2016-02-18

Sorry mate, its still producing html links rather then the plain url:

Currently generates: Example.pdf

Would prefer: conisio://Example Vault/open?projectid=1041&documentid=64454&objecttype=1

LY
LY 2016-02-18

The add-in doesn't support folders.

SF
SF 2016-02-18

Sorry Lee, very poor choice of words on my part. I don't mean folders in EPDM, I actually mean the sub-menus that appear when you click on the button for this add-in. I have edited the comment above, hopefully it makes sense now.

LY
LY 2016-02-19

The HTML sub-menu commands are for pasting into an application that support the HTML format​ (i.e. MS Word)​ The other two menus do what you have described as intended.

I think after 6.5 years this should be built into EPDM/PDM Pro.

CS
CS 2016-03-04

Here's the files, sorry I can't get you a cex this time but I upgraded my test environment to 2016 SP2 to start running some upgrade testing. You should be able to remove the old and add the new files in the add-in if you open it in the admin tool though.

comment imagecomment image
SS
SS 2016-04-01

Hello all,

thanks for all the great info on hyperlinks. I've got the add-in working and it copies the doc and project ID beautifully.

However, I seem to have an issue with checking Word files (docm and docx only, Word 2010, PDM 2016) in after I've added a hyperlink to a file in the vault.

So, I can check a docx and docm file in and out without any issues but as soon as I add a hyperlink to such a file and check it in, I get an error window saying "An unknown error has occurred" and it then doesn't display the check-in window blocking me from checking in the file.

I initially thought it might be the PDM Office Add-In but when I save the hyperlinked file, close Word and check in via Windows Explorer I do get the check in window but the same error appears there and the check in button is greyed out.

Doc file and Excel files (all Office 2010) can be hyperlinked and checked in without issues.

Anybody got an idea?

JC
JC 2016-04-01

Ask your VAR to add you to SPR 467376....this has been a problem for Word 2007 docx files for many many .....too many years. We still just use Word doc file formats for our templates because of it.

Some of these issues persist for far too long. I first reported it to my VAR in 2011 and was giving this SPR as a known issue......that's 5 years ago and it existed already. Looking at the date of other service requests I had and the SPR number given.....I'd estimate that this SPR was created toward the end of 2008. So 8 years later.....still not fixed.

SS
SS 2016-04-03

Thanks for that, Jason. That is indeed a ridiculously long time......

Right, so that leave me with converting my docm files to doc.........

AO
AO 2017-03-31

Good day, can you please attach some source files.

EU
EU 2018-02-21

Has anyone figured out how to fix the above issues with the open command? Is there a way to combine commands? For instance, get a specific version then open file?