Help combining 2 macros

Help combining 2 macros

Anonymous
Not applicable
430 Views
3 Replies
Message 1 of 4

Help combining 2 macros

Anonymous
Not applicable

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.

0 Likes
Accepted solutions (1)
431 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

I realized I'm an idiot an forgot to add the files so here you go.

0 Likes
Message 3 of 4

Anonymous
Not applicable
Accepted solution

I figured out the problem,  Someone changed it so all of the parts were the same thickness,  so the Dxf's are actually going to the right place but the Drawing macro doesn't update the Custom I property that the Ilogic reads so it was using the old thickness and putting it in the wrong spot.

0 Likes
Message 4 of 4

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Thanks for letting us know that you found a solution,

 

If there are any queries, please let us know.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes