드디어 이동 성공..
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')
으흐흐 회전만남았다 ㅋㅋㅋ
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')
으흐흐 회전만남았다 ㅋㅋㅋ
'Python' 카테고리의 다른 글
IFC파일 분석 정리(obj v= ifc IFCCARTESIANPOINT) (0) | 2020.07.07 |
---|---|
Obj와 Ifc 파일이 회전 처리가 다른 이유 (0) | 2020.07.07 |
IfcOpenShell, Python, 내부 객체 복사 (0) | 2020.07.01 |
Python에서 IFC파일 컨트롤..(IfcOpenShell) (0) | 2020.07.01 |
ImportError: IfcOpenShell not built for 'windows\64bit\python3.7' IfcOpenShell pycharm 에러 (0) | 2020.06.17 |