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

TDocStd.py | TypeError: in method 'new_TDocStd_Document', argument 1 of type 'TCollection_ExtendedString const &' #71

Open
im44pos opened this issue Sep 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@im44pos
Copy link

im44pos commented Sep 8, 2023

Want to export a shape or solid to a .glb file.
Example code from pythonocc-demos/examples/core_export_gltf_single_shape.py results in TypeError on "create document" line 37
'''doc = TDocStd_Document("pythonocc-doc")'''
'''TypeError: in method 'new_TDocStd_Document', argument 1 of type 'TCollection_ExtendedString const &''''
..\lib\site-packages\OCC\Core\TDocStd.py:1120

@amoghsundararaman
Copy link

Same issue would love a solution

@tpaviot tpaviot added the bug Something isn't working label Feb 3, 2024
@tpaviot
Copy link
Owner

tpaviot commented Feb 3, 2024

Try:

doc = TDocStd_Document(TCollection_ExtendedString("pythonocc-doc"))

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

3 participants