Reading IFC_Line number

unhandled

(Paoloborin85) #1

Hi Jon, I found a problem reading a simple IFC file. Particularly number of lines from node DecomposeBuildingStorey don’t correspond on lines within the IFC file. i.e line 162 in the image does not correspond to that IfcSpace. I can’t get the problem. Could you take a look?

Thanks


prove ifczones.gh (15.0 KB)
ifc zones4.zip (20.4 KB)


#2

Hi Paolo,

Thanks for posting.

The key for the line number change is whether you want to “import” the referenced IFC file into the gh document IFC file (that the plugin manages for you), or if you want to reference that data.

There is an append data option on the file import component, if you set that to false, the data won’t have records offset for any existing objects in the plugin database already set.

I’m actually working on changing this, in part it will be easier to have multiple ifc databases on the one canvas (but I might have to add some error checking to prevent unintended cross referencing).

There’s also some improvements relating to zones, I will reply to your email to access this new work in a plugin update. I’ve attached a modified version of your script that might help.

Cheers,

Jon
prove ifczones.gh (14.0 KB)


(Paoloborin85) #3

Thanks for reply! All clear, I should learn the “append data” by myself…):
BTW I have an error CS1729 on your C# node, sorry not to understand

About the email, I will check new updates, IfcZones are basic for energy optimization!
Thanks

p