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.
I realized I'm an idiot an forgot to add the files so here you go.
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.
@Anonymous,
Thanks for letting us know that you found a solution,
If there are any queries, please let us know.
Thanks and regards,
Can't find what you're looking for? Ask the community or share your knowledge.