Message 1 of 6

Not applicable
07-31-2014
02:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a program that creates a part as visible being false and then when I try to create a flat pattern it crashes (the unfold method). It works fine if I change my visible boolean to true. I have a parameter in the part already for thickness named "thick"
This is the specific code that doesn't want to run:
Dim oFlatDef As SheetMetalComponentDefinition = oPart.ComponentDefinition oFlatDef.UseSheetMetalStyleThickness = False oFlatDef.SheetMetalStyles.Item("Default").Thickness = "thick" oFlatDef.Unfold()
Anyone ran into this before? Almost like it isn't updating the "Thickness" parameter in the background if it isn't visible. I even tried to stick a part doc update in before the unfold method.
Solved! Go to Solution.