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

Ipt to Step is not working. #83

Open
leoheck opened this issue Feb 26, 2024 · 5 comments
Open

Ipt to Step is not working. #83

leoheck opened this issue Feb 26, 2024 · 5 comments

Comments

@leoheck
Copy link

leoheck commented Feb 26, 2024

Hi, I just found this workbench to convert a model to step.
It looks like it is not working for me. I am not sure if this is a problem with my ipt model or a problem with the InventorLoader.
I am going to share the output of Freecad, here.

I selected to import the step, but it looks like it is importing all the options presented in the popup window.

20:39:25  Importing: /home/lheck/Downloads/Caja_Metalica_Octagonal.ipt
20:40:06  pyException: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/lheck/.local/share/FreeCAD/Mod/InventorLoader/./importerIL.py", line 118, in insert
    reader.create3dModel(group, doc)
  File "/home/lheck/.local/share/FreeCAD/Mod/InventorLoader/./Import_IPT.py", line 279, in create3dModel
    convertModel(root, doc.Name)
  File "/home/lheck/.local/share/FreeCAD/Mod/InventorLoader/./importerSAT.py", line 151, in convertModel
    ImportGui.insert(stepfile, docName)
<class 'OSError'>: Cannot read STEP file: /home/lheck/Downloads/Caja_Metalica_Octagonal_ipt/0016.step

I am also attaching the file here.
Caja_Metalica_Octagonal.zip

I am using the latest Freecad, 0.22

OS: Ubuntu 23.10 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.36117 (Git) AppImage
Build type: Release
Branch: main
Hash: 8a3407aee6dff8218282d9cdc3f4e32e7ad958d4
Python 3.10.13, Qt 5.15.8, Coin 4.0.2, Vtk 9.2.6, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * InventorLoader 1.4.0
@marcocecchiscmgroup
Copy link

According to the log the model has been successfully converted, but failed writing the STEP file /home/lheck/Downloads/Caja_Metalica_Octagonal_ipt/0016.step.

This is not a problem of this library.

image

@leoheck
Copy link
Author

leoheck commented Apr 4, 2024

Ah, ok.

The generated file is this binary file
image

Reading it with the text editor it looks like this.
image

It is a data file...
image

It should be like this one (ASCII file)
image

The cat can see something inside...
image

It looks like I have encoding issues or something else, here..

@marcocecchiscmgroup
Copy link

This is strange, as it should be ASCII.

Attached.
0016.zip

@leoheck
Copy link
Author

leoheck commented Apr 4, 2024

I was updating my last message, sorry, hit send before it was ready.

@leoheck
Copy link
Author

leoheck commented Apr 4, 2024

The file you shared is good. See:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants