본문 바로가기

Python

IfcOpenShell Pyton으로 내부객체 이동

드디어 이동 성공..

improt ifcopenshell

f=ifcopenshell.open('filename.ifc')
g=ifcopenshell.file(schema=f.schema)
prjF=f.by_type('IfcProduct')[0]
elemFromf=f.by_type('IfcBuildingElementProxy')[0]
elemFormf.ObjectPlacement.RelativePlacement.Location.Coordinates=(10.0,0.0,0.0)
g.add(prjF)
g.add(elemFromf)
g.write('newFile.ifc')

으흐흐 회전만남았다 ㅋㅋㅋ