macro to copy a custom property from a drawing to a new one

Hi there,

I am looking for a solidworks macro to copy a custom property from current drawing, and then paste it in a new drawing.

Reason: I have got a macro from codestack website to export DXFs which is copying separately each view and note from the sheet to a new document at scale 1:1 with notes underneath. The issue is that the revision number in the note is always wrong because the new document hasn't got any revision property. 

issue example: if the drawing I am exporting from is a revision 3 when I run the macro then the temporary drawing used to export the dxf has no revision.

I need the revision property to be saved in a variable and then added to the temporary drawing

macro can be found here:

https://www.codestack.net/solidworks-api/document/drawing/export-sheet-metal-views/

 

hopefully this will make sense to someone.


Cheers