Comments (9)
I can't reproduce the problem, for me moving the object using the gizmo works fine. Is there any error message in the output window?
About the gizmo being placed at (0,0,0), that's normal, because that's where the placement of the object is (entity #42). Does it happen differently in BlenderBIM? (I can't test right now, need to recompile it)
from freecad-nativeifc.
No, unfortunately no error in the report-view.
But changing the z-value of the Position freezes FreeCAD with errors:
About gizmo problem you are right. Blender shows gizmo at (0,0,0) too.
from freecad-nativeifc.
That's weird... I can change the position without errors. I don't understand what's happening 😲
Can you try with an updated version of NativeIFC? I just tried a fix...
from freecad-nativeifc.
That's really weired ...
in order to narrow down the problem I tried this:
- update FreeCAD to latest weekly-build (btw I'm on windows) and the addon's Native-IFC and BIM to the latest versions
- uninstall all other addons
- Import IFC_Test1.ifc with nativeIFC
Result:
- when I click on the existing z-value (0,00 cm) of the Position to select it everything is fine
- when I type 5 instead of 0,00 I see 5cm in the corresponding field and "Member 1" on the screen translates by 5cm. So far everything is ok.
3a. when I then click on the 3d-Viewport or press Enter FreeCAD freezes
3b. when I continue to change the z-value by pressing another number on the keyboard (i.e. 0) I see the value 50cm in the input field and "Member 1" translates to its new position in the 3d-Vieport. At the same time the report view shows the errors I mentioned in my previous message. - At this point I can jumb to 3a or 3b
I did another test that maybe can help:
- import IFC_Test1.ifc
- save it as IFC_Test1.FCStd (FreeCAD file)
- close an reopen IFC_Test1.FCStd
Here I see this error:
11:30:32 Imported IFC_Test1.ifc ( 0.0 Mb ) in 00:00
11:30:52 Traceback (most recent call last):
File "C:\Users\Robert\AppData\Roaming\FreeCAD\Mod\FreeCAD-NativeIFC\.\ifc_objects.py", line 58, in onChanged
self.edit_placement(obj)
File "C:\Users\Robert\AppData\Roaming\FreeCAD\Mod\FreeCAD-NativeIFC\.\ifc_objects.py", line 178, in edit_placement
result = ifc_tools.set_placement(obj)
File "C:\Users\Robert\AppData\Roaming\FreeCAD\Mod\FreeCAD-NativeIFC\.\ifc_tools.py", line 866, in set_placement
scale = ifcopenshell.util.unit.calculate_unit_scale(ifcfile)
File "C:\Users\Robert\Downloads\FreeCAD_weekly-builds-33236-2023-05-18-conda-Windows-x86_64-py310\bin\lib\site-packages\ifcopenshell\util\unit.py", line 453, in calculate_unit_scale
units = file.by_type("IfcUnitAssignment")[0]
<class 'AttributeError'>: 'NoneType' object has no attribute 'by_type'
from freecad-nativeifc.
Can you try again now? I just added a line that would print more info if the same problem happens again...
from freecad-nativeifc.
At first glance I can't notice any difference with the new update.
from freecad-nativeifc.
I did this other test that maybe can help:
- load IFC_Test1.ifc into BlenderBIM
- in BlenderBIM duplicate "Member 1" to optain "Member 2"
- save the IFC-file in BB and import it in FC
- notice that in FC "Member 1" is red and "Member 2" is grey, while in BB they both are red
- when you change Position for "Member 2" it works as expected
- when you change Position to "Member 1" FC freezes
Here i append the IFC-file with both Members:
"Member 1" = original and somehow corrupted object
"Member 2" = copied and working object
IFC_Test1_with_copied_beam.ifc.txt
from freecad-nativeifc.
Hi Yorik!
I have seen the latest progress in the development of the IFC add-on and I am very happy about it.
So I tried to reproduce this problem with the latest updates (FreeCAD weekly bundle for Windows ver. 2024/03/11 and NaitiveIFC add-on ver. 2023.10.27). The problem seems to have been solved in the meantime, so I think the issue can be closed.
Best regards and thank you for your work!
from freecad-nativeifc.
The best bugs are those that fix themselves ;)
Thanks for confirming!
from freecad-nativeifc.
Related Issues (20)
- Drag & Drop failed - no module named 'ifcopenshell.api.spatial.unassigned_container' HOT 7
- Get rid of the dummy 1x1x1 cube HOT 1
- Handle furniture
- Make boolean objects editable HOT 6
- Installed Addon not working on windows and Linux HOT 15
- Background process for Native IFC? HOT 4
- AttributeError: 'NoneType' object has no attribute 'addObject' HOT 3
- Error Message on opening an IFC Native HOT 5
- <class 'ValueError'>: too many values to unpack (expected 2) HOT 5
- Enhancement Request - move Dialog in Task Area, add Stats window and create a Native IFC feature HOT 6
- import ifcopenshell failed with error "signed with custom identity or adhoc?" on the macOS M1 HOT 1
- Add a Part or PartDesign object to a IFC HOT 5
- Support IFC4.3.2 for infrastructure? HOT 6
- [Issue] Lock an unlocked file with more then one IfcProject inside HOT 2
- [Issue] Document containing an IfcProject and FreeCAD objects HOT 3
- [Issue?] Weired "save-behavior" with new IFC-doc (strict IFC mode)
- aggregate() continues even though get_ifcfile() returns None HOT 2
- Addon is not working on version 0.21.1
- Unable to save IFC file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecad-nativeifc.