Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Andrejs Menkins

Mechanical
Joined
Feb 9, 2024
Messages
2
Location
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top