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

Method create_owner_history

src/ifc2ca/_deprecated/ca2ifc.py:331–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 return axes
330
331 def create_owner_history(self):
332 actor = self.f.createIfcActorRole("ENGINEER", None, None)
333 person = self.f.createIfcPerson("Christovasilis", None, "Ioannis", None, None, None, (actor,))
334 organization = self.f.createIfcOrganization(
335 None,
336 "IfcOpenShell",
337 "IfcOpenShell, an open source (LGPL) software library that helps users and software developers to work with the IFC file format.",
338 )
339 p_o = self.f.createIfcPersonAndOrganization(person, organization)
340 application = self.f.createIfcApplication(organization, "v0.0.x", "IFC2CA", "IFC2CA")
341 timestamp = int(datetime.now().timestamp())
342 ownerHistory = self.f.createIfcOwnerHistory(p_o, application, "READWRITE", None, None, None, None, timestamp)
343
344 return ownerHistory
345
346 def create_reference_subrep(self, globalAxes):
347 modelRep = self.f.createIfcGeometricRepresentationContext(None, "Model", 3, 1.0e-05, globalAxes, None)

Calls 1

timestampMethod · 0.80