Skip to content
Discussion options

You must be logged in to vote

Hi @pasc1377,
Please find below an example that contains a bunch of polylines with 2 angular arcs:

import ansys.aedt.core
from ansys.aedt.core.modeler.cad.primitives import PolylineSegment

m2d = ansys.aedt.core.Maxwell2d(version="2024.2")

ref_points = [
    [0.4, 0, 0],
    [-0.4, -0.6, 0],
    [0.4, 0, 0]]

my_geometry = m2d.modeler.create_polyline(
    points=ref_points,
    segment_type=[PolylineSegment(segment_type="AngularArc", arc_center=[0, 0, 0], arc_angle="180deg", arc_plane="XY"),
                  PolylineSegment(segment_type="Line"),
                  PolylineSegment(segment_type="AngularArc", arc_center=[0, -0.6, 0], arc_angle="180deg",
                                  arc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gmalinve
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