No warning while Unfolding sheet metal with API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to create Flat pattern of a geometry using Inventor API. But when the flat pattern is created, I can see that the plates are interfering. But yet, I get no warning which says that there is an interference after unfolding. However, when I use the 'Create Flat Pattern' command on Inventor, it shows the warning. Below is the c# code. Is there anything missing? Thanks.
oDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}";
SheetMetalComponentDefinition oSheetMetalDef = default(SheetMetalComponentDefinition);
oSheetMetalDef = (SheetMetalComponentDefinition)oDoc.ComponentDefinition;
SheetMetalFeatures oSheetMetalFeatures = (SheetMetalFeatures)oSheetMetalDef.Features;
oSheetMetalDef.UseSheetMetalStyleThickness = false;
oSheetMetalDef.Thickness.Value = 3;
oSheetMetalDef.UseSheetMetalStyleMaterial = true;
oSheetMetalDef.Unfold();