Macro for DXF export (sheet metal) from part files with revision suffix
Macro for DXF export (sheet metal) from part files with revision suffix
(OP)
Hello,
I know that here and there this topic is already mentioned.
I need a super simple Macro for DXF export from file. Now im using Macro from Codestack:
https://www.codestack.net/solidworks-api/document/...
Which is too complex for me to adjust - or to be honest - im a real newbie.
Problem starts when i need to attach a variable at the end.
For Example: a Part AM-05120-01 is without a revision - DXF will be AM-05120-01.dxf.
But if this part will have a revision (Custom property manually written digits: 01,02 etc.) i need following DXF file name: AM-05120-01_REV01.dxf.
So the main idea is to have such functionality in Macro that reads Custom property "Revisions" and depending on value of this property - Empty or double digits - and if sees that Custom property "Revision" is not Empty, adds _REV between FileName and Revision number.
I hope that somebody could help me out, because im already a bit desperate :D
I know that here and there this topic is already mentioned.
I need a super simple Macro for DXF export from file. Now im using Macro from Codestack:
https://www.codestack.net/solidworks-api/document/...
Which is too complex for me to adjust - or to be honest - im a real newbie.
Problem starts when i need to attach a variable at the end.
For Example: a Part AM-05120-01 is without a revision - DXF will be AM-05120-01.dxf.
But if this part will have a revision (Custom property manually written digits: 01,02 etc.) i need following DXF file name: AM-05120-01_REV01.dxf.
So the main idea is to have such functionality in Macro that reads Custom property "Revisions" and depending on value of this property - Empty or double digits - and if sees that Custom property "Revision" is not Empty, adds _REV between FileName and Revision number.
I hope that somebody could help me out, because im already a bit desperate :D
RE: Macro for DXF export (sheet metal) from part files with revision suffix
Deepak Gupta
SOLIDWORKS Champion and Expert
SW 2022 SP0.0, 2021 SP5.1 and 2020 SP5.0
Boxer's SOLIDWORKS Blog
RE: Macro for DXF export (sheet metal) from part files with revision suffix
Thank you. I will take a look.