MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / parse_resources_xml

Method parse_resources_xml

src/ifc4d/ifc4d/p62ifc.py:204–216  ·  view source on GitHub ↗
(self, project)

Source from the content-addressed store, hash-verified

202 return {"Name": wbs.find("pr:Name", self.ns).text, "subtasks": []}
203
204 def parse_resources_xml(self, project):
205 resources = project.findall("pr:Resource", self.ns)
206 for resource in resources:
207 id = resource.find("pr:ObjectId", self.ns).text
208 self.resources[id] = {
209 "Name": resource.find("pr:Name", self.ns).text,
210 "Code": resource.find("pr:Id", self.ns).text,
211 "ParentObjectId": resource.find("pr:ParentObjectId", self.ns).text,
212 "Type": self.resource_type_map[resource.find("pr:ResourceType", self.ns).text],
213 "ifc": None,
214 "rel": None,
215 }
216 print("Resource found", self.resources)

Callers 1

parse_xmlMethod · 0.95

Calls 2

printFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected