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: 100
    First Anniversary First Answer Ansys Employee Solution Developer Community of Practice Member
    admin

    @Massimo /@massimo_pyaedt can help with this

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

    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