Skip to content

Implement assign meshoperation funtion in electronics desktop version 2024R2 #5007

Closed Answered by ansys-satyajeet
aknsj asked this question in Q&A
Discussion options

You must be logged in to vote

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 MEMORY1_1 is name of the object. You should see the local mesh parameters updated.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ansys-satyajeet
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