AnsweredAssumed Answered

Macro to know if a file exist in Vault ?

Question asked by Mofel Mofel on Jul 18, 2015
Latest reply on Jul 20, 2015 by Deepak Gupta

Hello,

 

It's my first post on the forum; We are using SW2014 with WPDM.

 

Few month ago, i modified a macro found on the forum to export all drawings existing in the vault in PDF and put it a network folder.

This works well.

 

Today i'm trying to add that for each draw i need to export a STEP of the relative 3D part or a step of the relative 3D Assembly.

 

What i wanted to do is:


--> For each draw

--> Find the name part of the part or the name of the assembly

--> get the .sldprt file or .sldasm file from the vault

--> export it in STEP

--> delete the local source file.

 

My problem is on the frist step:

--> Is there any function in the API to be able to know the name of a part or assembly referenced in a sldrw file ?

 

Thanks for your help !

Outcomes