Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
505 Views, 6 Replies

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

 

2016-11-02_22h50_10.pngBR,

Daniel

Anonymous
in reply to: Anonymous

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

Anonymous
in reply to: Anonymous

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

 

Anonymous
in reply to: Anonymous

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

Anonymous
in reply to: Anonymous

Hello Wayne,

 

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

BR,

Daniel

Anonymous
in reply to: Anonymous

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

 

Regards

Anonymous
in reply to: Anonymous

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

I post, when I get news.

 

BR,

Daniel