
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I have some code from others contributions that has helped me to create a dxf from parts in assemblies and to export parameters, however after much trying I have to concede I don't have any real programming skills to bring all the code together I need.
This will greatly help my clients fabrication department in generating dxf's , managing dxfs and in nesting dxfs.
I need code to take part HM12345.ipt and generate HM12345_(Revision)_(Thickness), from an open assembly.
Revision comes from the property 'Revision'
Thickness comes from the parameter 'Thickness' in sheet metal parts
I also need to set every checked out part in the assembly to export the parameter 'Thickness' prior to running the main routine.
My final dxf filename would look like this. HM12345_00_3.0mm.dxf
Also in the routine attached I think the code is getting the revision number of the assembly not of each part.
I need the revision number of each part to appear in the file name of each part.
So the workflow would be
1. Set all parts parameter 'Thickness' set to export in open assembly
2. Create Sub folder with same number as Assembly and the text DXF, ie HM12345_DXF
3. Generate DXF's with concatenated part number as above in that folder
If someone could help it would be greatly appreciated
Thanks Peter
Solved! Go to Solution.