Comments (6)
I think the first thing to try and implement is showing attributes as it's the easiest. Create a panel that is able to lazyload attributes and refresh after operations have been performed.
from freecad-nativeifc.
In FreeCAD we don't have as much control over the properties panel of objects. It can only display object properties. So basically there is no easy way to add something like an "Edit..." button there. What we could do (I'd do that for now, I think) is add a couple of right-click context-menu similar to the current "Expand children", ex: "Expand attributes", "Expand properties", etc.
We could think to something better in the future, but at least the underlying functionality will already be working.
Now, expanding attributes will begin to reveal things like owner history, IfcRel* objects, etc...
How fine / how far should this go? We could in theory show each and every IFC element there, up to the IfcCartesianPoint, with all the inbetweens (IfcRel*, etc...). How did you / do you choose in BlenderBIM?
from freecad-nativeifc.
Side question... How do you get all possible Ifc product types from ifcopenshell?
from freecad-nativeifc.
@Moult how would I go to get a list of sibling IFC classes, for ex:
- I have an IfcWall, I'd like to get a list of other IfcProducts
- I have an IfcBuildingStorey, I'd like to get a list of other IfcSpatialStructuralElement
etc...
I couldn't find how to get that from ifcopenshell... Do you know if there is a way?
The idea is that it happens here: https://github.com/yorikvanhavre/FreeCAD-NativeIFC/blob/main/ifc_tools.py#L228
from freecad-nativeifc.
schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name('IFC4')
declaration = schema.declaration_by_name('IfcWall')
print(declaration.supertype())
for subtype in declaration.supertype().subtypes():
print(subtype.name())
from freecad-nativeifc.
excellent! thanks!!!
from freecad-nativeifc.
Related Issues (20)
- FreeCAD freeze when moving IFC object HOT 9
- 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.