PyAEDT Referencing different Coordinate systems

Options
Andy
Andy Member Posts: 2

Is there a way to return values from primitives like (EdgePrimitive.midpoint) in reference to a different coordinate system that is not the global coordinate system?

Tagged:

Answers

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

    @Massimo /@massimo_pyaedt can help with this

  • Samuel Lopez
    Samuel Lopez Member, Employee Posts: 21
    First Anniversary Ansys Employee 5 Likes First Answer
    Options

    Hi @Andy ,


    You just need to pass the coordinate list (p) to this method:

    p2 = hfss.modeler.global_to_cs(p, "CS5")
    

    This will return a new list referenced to the CS5 coordinate system.

    Regards,

    Samuel