- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Flatbendresult.Bend = nothing???
Hello,
I'm trying to apply a custom Text to a bendnote, including a custom ID. To achieve this, I save the ID as an attribute to the first Outerface (I wonder if there can be more then one anyway....) of the Bend Object in Scope. In the drawing I was hoping to get back to the Bend Object via the Bendedge.Modelgeometry.Edge --> corresponding Flatbendresult.Bend path.
Appearently, although the Property "Bend" exists on the Flatbendresult Object, it is always Nothing/null (at least in my tests....).
I was trying several ways via different Edge-TransientKeys hoping to find a match. No luck....
So actually i see no way to get the connection between the FlatBendResult and the Bend (resp. the faces of it) it's derived from......
Could anyone manage such a situation? Is this a bug in the API...?
BR,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Daniel (and any Autodesk people watching)
Did you get an answer to this issue, as I am also having the same issue.
Best regards & Merry Christmas
Wayne
Inventor 2016 (Build 236, Release: 2016.2.2 - Date 10/10/2016
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, i have no problem with getting the results that i want from a drawingview and the actual bend (this is a snippet from my .NET code)
I hope this is what you are looking for!
If oDrawViewCurve.EdgeType = DrawingEdgeTypeEnum.kBendDownEdge Or oDrawViewCurve.EdgeType = DrawingEdgeTypeEnum.kBendUpEdge Then
Dim oEdge As Edge = oDrawViewCurve.ModelGeometry
Dim oSMDef As SheetMetalComponentDefinition = oEdge.Parent.ComponentDefinition
Dim oSmStyleBendradius As Object = oSMDef.ActiveSheetMetalStyle.BendRadius
Dim oFlatPattern As FlatPattern = oSMDef.FlatPattern
Dim oBendResult As FlatBendResult = oFlatPattern.FlatBendResults.Item(oEdge)
End if
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm afraid, you didn't catch the question. The problem isn't getting the Flatbendresult, but the Bend object in in the folded model of the flatbendresult.
BTW: Autodesk confirmed this as an error in the API. I have a running task at Autodesk to this. As any news come up, I will comment here.
BR,
Daniel