-
Notifications
You must be signed in to change notification settings - Fork 4
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 FCstd to jcad #25
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: martinRenou <[email protected]>
for more information, see https://pre-commit.ci
|
||
try: | ||
fcstd = FCStd() | ||
fcstd.load(base64_content=base64_content) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our jupytercad_freecad.freecad.loader
module only exposes a load
method that reads base 64 data, but it will create a temporary file under the hood before passing it to actual freecad. So we're reading into base 64, writing the file, and reading it again.
We could reduce the complexity of this by introducing e.g. a load_file
method to the FCStd
that loads from a file directly.
Adding a note that exporting an empty FCstd file seems to fail |
Fix #24