import, read Autodesk Layer

This forum section is only for IFC-related issues
User avatar
1D_Inc
Posts: 144
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: import, read Autodesk Layer

Post by 1D_Inc »

Wow, here is some hierarchical discussion!
Well, here is a topic I made for Blender 2.8 considering hierarchical navigation, such as layers, groups, etc,
can be useful as entire problem overview (with pictures and descriptions)

https://devtalk.blender.org/t/layers-maniphest/6578


TAB.png
TAB.png (40.74 KiB) Viewed 1039 times
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: import, read Autodesk Layer

Post by yorik »

I tweaked a bit the Draft VisGroup today, and bingo, we have a layers system in FreeCAD!
Screenshot from 2019-06-05 18-42-49.png
Screenshot from 2019-06-05 18-42-49.png (227.33 KiB) Viewed 1021 times
It is now in master in git commit 5ee99ca4e

It's basically just an extension of the former Draft VisGroup tool, that has been renamed to Layer, since it's not a group anymore.

- You can add objects to/from layers by dragging them to/from the layers in the tree
- It doesn't remove objects from their groups, so an object can be both in a group and a layer. The layers system is fully independent
- Layers have an "OverrideChildren" property that you can set to False if you don't want to apply the layer colors to children
- If you turn a layer on/off, everything inside is turned on/off too
- Layers live in a special "Layers" group
- Brand new experimental feature: layer icons take the color of the layer! I'm not sure if this won't make things heavy, so let's keep an eye on it!

I had never played before with drag and drop support in python objects... Pretty cool, lots of possibilities...

I'lll let it live its life a little bit, if all goes well we can add support to it to the IFC and DXF importers.
User avatar
1D_Inc
Posts: 144
Joined: Tue Feb 05, 2019 10:06 pm
Contact:

Re: import, read Autodesk Layer

Post by 1D_Inc »

Sounds gorgeous!
Layers are always needed in any CAD program on my mind.
Thank you))
Post Reply