Message 1 of 4

Not applicable
07-25-2019
08:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a macro that creates drawings of sheetmetal parts and a macro that creates drawings of sheet metal parts, and I'm trying to combine them into one macro and am having issues. The drawings work fine, but the DXF's all go into the same file instead of sorting by gauge like they are supposed to.
If you want to test it yourself comment out the lines
If UCase(oRefDoc.PropertySets.Item("Design Tracking Properties").Item("Vendor").Value) = "LASER" Or _ UCase(oRefDoc.PropertySets.Item("Inventor Document Summary Information").Item("Category").Value) = "LASER" Then
so that it runs on all sheetmetal parts in the assembly and not only the ones marked as laser.
p.s. I know that the simplest way to do it would but some short line like Run "Export_Sheetmetal" then Run "Draw_Sheetmetal" but that would open each part twice and I'm trying to combine them to save time.
Solved! Go to Solution.