Implement assign meshoperation funtion in electronics desktop version 2024R2 #5007
-
Beta Was this translation helpful? Give feedback.
Answered by
ansys-satyajeet
Aug 8, 2024
Replies: 1 comment 1 reply
-
Hi @aknsj You can try the following memory_meshop = "memory1_meshOP"
ipk.mesh.assign_mesh_level(mesh_order={"MEMORY1_1": 0},
name=memory_meshop)
for item in ipk.mesh.meshoperations:
if item.name.startswith(memory_meshop):
item.props["Local Mesh Parameters Enabled"] = True
item.props["Local Mesh Parameters Type"] = "Box Local Mesh Parameters"
item.props["X Count"] = 4
item.props["Y Count"] = 2
item.props["Z Count"] = 4
item.update() Here |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ansys-satyajeet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @aknsj
You can try the following
Here
MEMORY1_1
is name of the object. You should see the local mesh parameters updated.