Skip to content

Subpart axis system update fails #639

Open
@guoyin-zhao-ansys

Description

@guoyin-zhao-ansys

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Hello team,

It seems that when a subpart is created, its position cannot be updated using set_axis_system().

📝 Steps to reproduce

Test with following code sample and check that the big triangle is not moved after changing position:

root_part = p.create_root_part().commit()
root_part.create_body(name="Body.root").create_face(name="Face.root").set_vertices(
    [0, 0.1, 0.2, 0, 0.2, 0.2, 0.1, 0.2, 0.2]
).set_facets([0, 1, 2]).set_normals([0, 0, 1, 0, 0, 1, 0, 0, 1])
root_part.commit()

# initial position
child_part1 = root_part.create_sub_part(name="SubPart.1").set_axis_system([5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]).commit()
child_part1.create_body(name="Body.1").create_face(name="Face.1").set_vertices(
    [0, 0.2, 0.4, 0, 0.4, 0.4, 0.2, 0.4, 0.4]
).set_facets([0, 1, 2]).set_normals([0, 0, 1, 0, 0, 1, 0, 0, 1])
child_part1.commit()
p.preview()

# trying to update position
child_part1.set_axis_system([10, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]).commit()
p.preview()

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

2025R1

🐍 Which Python version are you using?

3.11

📦 Installed packages

ansys-api-speos        0.14.2
ansys-speos-core       0.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions