Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export_step fails on moved assembly #618

Open
gumyr opened this issue May 6, 2024 · 0 comments
Open

export_step fails on moved assembly #618

gumyr opened this issue May 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gumyr
Copy link
Owner

gumyr commented May 6, 2024

Export is failing:

from build123d import *
from ocp_vscode import *
from bd_warehouse.thread import TrapezoidalThread

testobj = TrapezoidalThread(
    diameter=20,
    pitch=1.5,
    length=20,
    thread_angle=30.0,
)
testobj_moved = testobj.moved(Location((0, 0, 10)))
# show(testobj)
# print("exporting unmoved step")
# export_step(testobj, "test.step")
print("exporting moved step, will fail")
show(testobj_moved)
print(testobj_moved.show_topology())
export_step(testobj_moved, "test.step")
Traceback (most recent call last):
  File "/home/roger-maitland/Documents/build123d/support/x0pherl-2.py", line 18, in <module>
    export_step(testobj_moved, "test.step")
  File "/home/roger-maitland/Documents/build123d/src/build123d/exporters3d.py", line 280, in export_step
    doc = _create_xde(to_export, unit)
  File "/home/roger-maitland/Documents/build123d/src/build123d/exporters3d.py", line 139, in _create_xde
    TDataStd_Name.Set_s(node_label, TCollection_ExtendedString(node.label))
OCP.Standard.Standard_NullObject: A null Label has no attribute.
@gumyr gumyr added the bug Something isn't working label May 6, 2024
@gumyr gumyr added this to the Gating Release 1.0.0 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant