PyAEDT Referencing different Coordinate systems

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: 183
    100 Comments 5 Answers First Anniversary Ansys Employee
    admin

    @Massimo /@massimo_pyaedt can help with this

  • Samuel Lopez
    Samuel Lopez Member, Employee Posts: 22
    5 Answers 10 Comments First Anniversary Ansys Employee
    ✭✭✭✭

    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