How do I set up specific shared topology on edges?

Mike.Thompson
Mike.Thompson Member, Employee Posts: 339
25 Answers 100 Comments 25 Likes First Anniversary
✭✭✭✭

How can I set up shared topology on specific edges in spaceclaim or discovery scripting?

Answers

  • Chris Harrold
    Chris Harrold Member, Administrator, Employee Posts: 183
    100 Comments 5 Answers First Anniversary Ansys Employee
    admin

    @Rajesh Meena can you asssit?

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 85
    10 Comments 5 Answers First Anniversary Solution Developer Community of Practice Member
    ✭✭✭✭

    @Mike.Thompson This is quite old question but I am posting solution here:

    Lets assume you have named selection of all the edges where you want to create sharedtopo. here is small snippet to do that. Below is the result as well.

    import System

    edge_selection = Selection.CreateByGroups("EDGE_SELECTION")
    point_vertices = []
    for edge in edge_selection.Items:
    point_vertices.append(edge.EvalStart().Point)

    point_list = System.ArrayPoint

    ShareTopology.FixSpecific(edge_selection, point_list)