Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Macro for DXF export (sheet metal) from part files with revision suffix

Status
Not open for further replies.

Andrejs Menkins

Mechanical
Feb 9, 2024
2
0
0
LV
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:


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
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top