Code: Select all
OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31741 (Git)
Build type: None
Branch: master
Hash: 693ec401f701d6ffa242cf63f666f091a0b2c1ca
Python 3.10.9, Qt 5.15.8, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US) [ OS: Italian/Italy (it_IT) ]
Installed mods:
* fcgear 1.0.0
* Assembly4 0.12.4
* toSketch 1.0.1
* Curves 0.5.8
* Help 1.0.3
I use this code in one of my scripts:
Code: Select all
f_name = os.path.join(STP_PATH, "front_wheel.step")
if os.path.exists(f_name):
print(f'f_name: {f_name} exist')
# Import.insert return a list with object and probably "axis"
imp_obj_1 = Import.insert(f_name, DOC.Name)
Other checks I have done:
- I have three files, only one of them is loaded by the code.
- If I try to lad it using the GUI files that create problems with code, they are loaded correctly.
- Same code is working with 0.20.2 AppImage, same system
Code: Select all
OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29603 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.10.8, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Italian/Italy (it_IT)
Installed mods:
* QuickMeasure 2022.10.28
* Assembly4 0.12.4
* fasteners 0.4.24
* toSketch 1.0.1
* Curves 0.6.1
* Help 1.0.3
Regards
Carlo D.