Project
- class compas_ifc.entities.Project(entity, model)
Bases:
ObjectDefinition
Class representing IFC projects.
Notes
The order of spatial structure elements being included in the concept for builing projects are from high to low level: IfcProject, IfcSite, IfcBuilding, IfcBuildingStorey, and IfcSpace with IfcSite, IfcBuildingStorey and IfcSpace being optional levels. Therefore an spatial structure element can only be part of an element at the same or higher level [2].
This means the minimum spatial structure of a project is:
IfcProject * IfcBuilding
Therefore, a project will contain one or more sites, or one or more buildings. If the project defines sites, the buildings will be contained in the sites.
model = Model(filepath) for project in model.projects: if not project.sites: for building in project.buildings: # ... else: for site in project.sites: for building in site.buildings: # ...
References
- Attributes:
- sitesList[
Site
] The sites contained in the project.
- buildingsList[
Building
] The buildings contained in the project. Note that this list is empty if
sites
is not empty.- unitsList[Dict]
The SI units used in the project.
- contextsList[Dict]
The representation contexts included in the project. Each representation context defines a coordinates system, a “true north” vector, and numerical precision.
- frame
compas.geometry.Frame
or None The reference frame, defined by the “Model” context, if that context exists.
- north
compas.geometry.Vector
or None The north vector with respect to the reference frame.
- gps???
Positioning of the reference frame on earth.
- sitesList[
Methods
Add a site to the project.
Inherited Methods
Get the value of a named attribute.
Return the relation that decomposes this element.
Factory function for creating an compas_ifc entity object from an Ifc entity, the function finds closest matched class from the bottom of inherentance.
Verify that the entity has a specific attributes.
Verify that this entity has a specific property.
Find the ancestors of the current entity up to the root element.
Return the relation that this element is decomposed by.
Print the entity inheritance as a nested list.
Print the spatial hierarchy of this element.
Get the value of the property with the given name.
Get the property set with the given name.
Set the value of a named attribute.
Set the values of multiple attributes.
Set the value of the property with a given name.
Traverse children of this element.
Traverse ancestors of this element.
Traverse the spatial branch of this element.