Flatbendresult.Bend = nothing???

Flatbendresult.Bend = nothing???

Anonymous
Not applicable
559 Views
6 Replies
Message 1 of 7

Flatbendresult.Bend = nothing???

Anonymous
Not applicable

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...?

 

2016-11-02_22h50_10.pngBR,

Daniel

560 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

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

0 Likes
Message 3 of 7

Anonymous
Not applicable

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

 

0 Likes
Message 4 of 7

Anonymous
Not applicable

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

0 Likes
Message 5 of 7

Anonymous
Not applicable

Hello Wayne,

 

for now I only have a confirmation from ADSK, that this is a bug in the API...

BR,

Daniel

Message 6 of 7

Anonymous
Not applicable

Thanks - please post if they come back with an answer.

 

Regards

0 Likes
Message 7 of 7

Anonymous
Not applicable

Hi, ADSK started an internal change request on this...

I post, when I get news.

 

BR,

Daniel

0 Likes