How do I set up specific shared topology on edges?

Options
Mike.Thompson
Mike.Thompson Member, Employee Posts: 312
First Anniversary First Comment 5 Likes Ansys Employee

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

Answers

  • Chris Harrold
    Chris Harrold Member, Administrator, Employee Posts: 180
    First Answer First Comment First Anniversary Ansys Employee
    admin
    Options

    @Rajesh Meena can you asssit?

  • Rajesh Meena
    Rajesh Meena Moderator, Employee Posts: 78
    First Anniversary Solution Developer Community of Practice Member Ansys Employee 5 Likes
    Options

    @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)