EPDM Paste as Reference

Hello

I would like to automate in epdm a copy paste as a reference of one file on another.

I looked at dispatch it doesn't seem possible to me.

To be clearer at the BE MECA, we have a MANUFACTURED PARTS folder (File name per PRFAB01234567 counter. SLDPRT) all SLDPRTs

And in FAO, they have a CAM file with the FAO  programs (PRFAB01234567. MCX-7) and they are forced to copy and paste as a reference for all programs.

Does anyone have an idea???

 

Hello, I think it's possible automatically with a VBA macro.

 

It is probably this instruction that will be used: http://help.solidworks.com/2014/English/api/epdmapi/epdm.interop.epdm~epdm.interop.epdm.iedmrawreferencemgr.html

 

And there is even an example: http://help.solidworks.com/2014/English/api/epdmapi/Update_File_Raw_References_Example_VBNET.htm

 

 

It is possible to create a macro that will do this for a particular file, or even for all the files in the vault.

 

For an introduction to VBA, I recommend the macro I did, where I commented on each line for more understanding:

http://www.lynkoa.com/tutos/3d/macro-enregistrer-sous-avec-solidworks

Otherwise, there are paid programs on Lynkoa that can also do it more simply than by writing code... (even if the VBa is not very complicated!) :

 

I think BatchProperties or Integration will be able to do this:

 

http://www.lynkoa.com/store/fr/tools-et-macros/utilitaires/utilitaire-batchproperties.html

http://www.lynkoa.com/store/fr/tools-et-macros/utilitaires/utilitaire-integration-1.html

 

But to be able to use these products in the Enterprise PDM vault, you also need to buy MyPDMTools and you need to request a quote for that:

http://www.mycadservices.com/store/fr/apps/mypdmtools.html

1 Like

Hello

I am bringing out a subject that is not very young. I tried to read the different articles, I couldn't find anything.

My goal is to paste files as references via a macro (in VBA), does anyone have that?

 

 

Nothing is more unpleasant than digging up an old topic, recreating your own and eventually you put a link to the reference topic.

Hello

This is the function you need but I'm not sure it exists in vba !!

Kind regards

1 Like