Skip to content

Modifying existing objects through the HFSS API. #3508

Closed Answered by Samuelopez-ansys
yxjhlxw asked this question in Q&A
Discussion options

You must be logged in to vote

@yxjhlxw , you can do it through the object history. For instance, if you have a Box called "Box1":

q = pyaedt.Hfss(specified_version="2023.1")

q.modeler["Box1"].history().props["XSize"] = "5mm"

q.modeler["Box1"].move([5, 5, 5])

q.release_desktop(False, False)

For the position, you can modify the properties or directly move the object. My suggestion is to create a parameter and control the size and position, but it is up to you.

Regards

Replies: 1 comment 1 reply

Comment options

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

Answer selected by yxjhlxw
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