Looking for iLogic/API UNFOLD samples

Looking for iLogic/API UNFOLD samples

llorden4
Collaborator Collaborator
498 Views
1 Reply
Message 1 of 2

Looking for iLogic/API UNFOLD samples

llorden4
Collaborator
Collaborator

Not to be confused with the unfold to get a flat pattern (which is what I keep finding samples for)...

 

I'm needing to Unfold bend features in order to create additional sketches and features to a created & bent part.

For those needing to know why, I'm attempting to take advantage of the new Model States to create additional sacrificial tic-marks our shop requires to align the flat material with their dies on an open press brake.

Autodesk Inventor Certified Professional
0 Likes
Accepted solutions (1)
499 Views
1 Reply
Reply (1)
Message 2 of 2

llorden4
Collaborator
Collaborator
Accepted solution

Great strides are made after you ask publicly for an assist, no?  This turned out to be fairly simple actually, sharing for the benefit of others.  This snipped includes utilizing the Named Geometry features and works quite nicely.

Dim oCompDef as SheetMetalComponentDefinition = ThisDoc.Document.ComponentDefinition
Dim oFace as Face
Dim oUnFold as UnfoldFeature
'other stuff here that made a formed sheet metal object and created Named Geometry
'
'
oFace
= iLogicVb.Automation.GetNamedEntities(ThisDoc.Document).TryGetEntity("Flat 1") oUnFold = oCompDef.Features.UnfoldFeatures.Add(oFace) oUnFold.Name = "CNC Flat Layout"

The unfold option included all bends by default, which turned out very handy.  You'll need to specify which bends to include if you don't want to unbend everything.  The online Help is useful here.

Autodesk Inventor Certified Professional
0 Likes