How to print edge radius of an edge in a Named selection?

Rohith Patchigolla
Rohith Patchigolla Member, Moderator, Employee Posts: 182
100 Comments 25 Answers 25 Likes First Anniversary
✭✭✭✭

How to print edge radius of an edge in a Named selection?

Answers

  • Rohith Patchigolla
    Rohith Patchigolla Member, Moderator, Employee Posts: 182
    100 Comments 25 Answers 25 Likes First Anniversary
    ✭✭✭✭
    edited October 10

    Try the below script.

    #Please follow the below script to print the radius of the edges in a Named Selection
    namedSelectionName = "All Edges"
    myNS = [child for child in Model.NamedSelections.Children if child.Name == namedSelectionName][0]
    for edgeId in myNS.Location.Ids:
        edgeObj = DataModel.GeoData.GeoEntityById(edgeId)
        #Print radius in Length unit appearing under Details window of Geometry --> Length Unit
        print(edgeObj.Radius)