How to add an attribute PredefinedType #3784
DaivaMarcinkeviciute
started this conversation in
General
Replies: 1 comment 1 reply
-
In the IFC2X3 version of the schema the attribute does not exist. It's a
new addition in IFC4. You can try to use the Schema migration utilities in
IfcOpenShell to try and upgrade your files.
https://standards.buildingsmart.org/IFC/RELEASE/IFC2x3/TC1/HTML/ifcproductextension/lexical/ifcspace.htm
Sent from a mobile device, excuse my brevity. Kind regards, Thomas
Op do 21 sep. 2023 17:30 schreef DaivaMarcinkeviciute <
***@***.***>:
… I have an IFC file with some ifcSpaces that do not have a predefined type.
I'd like to add predefined type "GFA" and i tried this:
elements = ifcFile.by_type("IfcSpace")
or element in elements:
element.PredefinedType = 'GFA'
Yet i get an error "list index out of range", as the space doesn't have
such attribute.
I found a way to add properties with ifcFile.createIfcPropertySingleValue,
but nothing for creating attributes, as they are suposed to be fixed. How
can i add PredefinedType?
Thanks in advance
—
Reply to this email directly, view it on GitHub
<#3784>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAILWV7LHGFFMKXFQQJG4Z3X3RMRJANCNFSM6AAAAAA5BXYV5U>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an IFC file with some ifcSpaces that do not have a predefined type. I'd like to add predefined type "GFA" and i tried this:
Yet i get an error "list index out of range", as the space doesn't have such attribute.
I found a way to add properties with ifcFile.createIfcPropertySingleValue, but nothing for creating attributes, as they are suposed to be fixed. How can i add PredefinedType?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions