[ Feature ] import of layer added

This forum section is only for IFC-related issues
Post Reply
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

[ Feature ] import of layer added

Post by bernd »

The import of layer was added with git commit c3ba041 I tested with files exported from Allplan and ArchiCAD. Would be good if you guys out there could test this with other CAD exports and give feedback.

cheers bernd

Screenshot_20191107_081107.png
Screenshot_20191107_081107.png (73.32 KiB) Viewed 1310 times
User avatar
Roy_043
Veteran
Posts: 8580
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Feature ] import of layer added

Post by Roy_043 »

In other CAD programs every graphical object has a layer property. This is not the case in FreeCAD where a layer is really a group. How do you deal with this fundamental difference?
chrisb
Veteran
Posts: 54300
Joined: Tue Mar 17, 2015 9:14 am

Re: [ Feature ] import of layer added

Post by chrisb »

I'm not familiar with layers in other CAD programs - I know them only from Gimp, but I imagine that the Std Part container can very well serve as a 3D layer with its own visibility and its own placement.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: [ Feature ] import of layer added

Post by bernd »

it is just a question of which direction is the link set.

Does the object has a layer property and links to the layer and the programm needs to take care each obj with the same property have the same layer

or

has the layer a link to all its childs.

The second is much easier to code in FreeCAD.

BTW: It should not be to difficault to add the information to each object which shows to which layer an object belongs to. For the user it would look like any other CAD than.

BTW2: In ifc the layer knows his childs, and the child knows hid layer due to inverse property.
User avatar
petit_chat_noir
Posts: 87
Joined: Wed Oct 02, 2019 6:45 pm

Re: [ Feature ] import of layer added

Post by petit_chat_noir »

You should have a look on WoodFrame workbench.
I added attributes system, this sounds like what you are talking to.
It could be easy to add an IFC-Layer attribute on the object
So with that you can select/hide objects by group/Material/sub-group and more
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: [ Feature ] import of layer added

Post by yorik »

If an object can have one and only one layer, then it doesn't really matter having the object to hold a layer property, or the layer to hold a list of children (like it is now). The result will be the same.

It is more a matter of how we want to construct the dependency tree...
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: [ Feature ] import of layer added

Post by bernd »

yorik wrote: Tue Nov 12, 2019 2:14 pm It is more a matter of how we want to construct the dependency tree...
Nice to see on the difference between materials and layer. The material is a link from the object to the material, the layer is a link from the layer to the object.
Post Reply