Code Monkey home page Code Monkey logo

Comments (6)

Moult avatar Moult commented on August 17, 2024

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.

yorikvanhavre avatar yorikvanhavre commented on August 17, 2024

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.

yorikvanhavre avatar yorikvanhavre commented on August 17, 2024

Side question... How do you get all possible Ifc product types from ifcopenshell?

from freecad-nativeifc.

yorikvanhavre avatar yorikvanhavre commented on August 17, 2024

@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.

Moult avatar Moult commented on August 17, 2024
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.

yorikvanhavre avatar yorikvanhavre commented on August 17, 2024

excellent! thanks!!!

from freecad-nativeifc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.