Skip to content

How can I assign names to edges in 2D geometry? #1883

Answered by RobPasMue
BearChick18 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BearChick18 - thanks for considering the usage of PyAnsys Geometry for your workflows. As far as I know, there are currently no mechanisms to assign names to single edges rather than faces - but I will contact the development team to see what we can do here.

Nonetheless, there is a workaround you can take which is creating NamedSelections. See an example here: https://geometry.docs.pyansys.com/version/stable/examples/01_getting_started/04_modeling.html#Create-a-named-selection

Although not explicitly shown in the example, this method create_named_selection(...) also supports passing in edges, so you could create a Named Selection for each of your edges with the names that you want. Li…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RobPasMue
Comment options

Answer selected by RobPasMue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants