Activity for Maria Laura Leonardi

  • Maria Laura Leonardi Maria Laura Leonardi modified a comment on discussion Open Discussion

    Thanks. I was starting the code as follow: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() but I receive the following error: File "c:/Users/mlaur/Desktop/newcode/test.py", line 155, in <module> pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() File "C:\Users\mlaur\anaconda3\envs\pyoccenv\lib\site-packages\ifcopenshell\geom\occ_utils.py", line 97, in initialize_display setup() Possible C/C++ prototypes are: V3d_DirectionalLight::V3d_DirectionalLight(V3d_TypeOfOrientation...

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Open Discussion

    Thanks. I was starting the code as follow: pyocc_viewer = ifcopenshell.geom.occ_utils.initialize_display() but I receive the following error: TKOpenGl.WinSystem | Type: Error | ID: 6 | Severity: High | Message: wglMakeCurrent() has failed. The handle is invalid. What can it be? I never work with handle..

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Open Discussion

    Hi, it is possible to export an ifc element (eg a wall) into an AIS_Colored shape? Because when I export it in TOPO.DS I lost the color that I have previously attributed. Thanks.

  • Maria Laura Leonardi Maria Laura Leonardi modified a comment on discussion Open Discussion

    Dear all, I was using this function in Python to assign a color to a wall. def execute(self): if not self.settings["styles"]: return [] self.results = [] for element in self.file.traverse(self.settings["shape_representation"]): if not element.is_a("IfcShapeRepresentation"): continue for item in element.Items: if not item.is_a("IfcGeometricRepresentationItem"): continue style = self.settings["styles"].pop(0) name = style.Name if self.file.schema == "IFC2X3" or self.settings["should_use_presentation_style_assignment"]:...

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Open Discussion

    Dear all, I was using this function in Python to assign a color to a wall. def execute(self): if not self.settings["styles"]: return [] self.results = [] for element in self.file.traverse(self.settings["shape_representation"]): if not element.is_a("IfcShapeRepresentation"): continue for item in element.Items: if not item.is_a("IfcGeometricRepresentationItem"): continue style = self.settings["styles"].pop(0) name = style.Name if self.file.schema == "IFC2X3" or self.settings["should_use_presentation_style_assignment"]:...

  • Maria Laura Leonardi Maria Laura Leonardi modified a comment on discussion Help

    Dear Thomas, I was trying to assign a color to a certain wall, but I receive this error. (see attachment) Could you please tell me what is my mistake? Thanks! :)

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Help

    Dear Thomas, I was trying to assign a color to a certain wall, but I receive this error. Could you please tell me what is my mistake? Thanks! :)

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Help

    Hi, how can I use this code with an already existing element? (without creating the geometry from scratch, but simply getting it from an element on ifc)

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Help

    Hi, I am trying to convert an IFC file into a step file, but I also need not lose the information about the material. In particular, while converting I need to create elements with different colors corresponding to element with different material. Do you have any hints? Thanks.

  • Maria Laura Leonardi Maria Laura Leonardi posted a comment on discussion Help

    Hi, I am just starting to use ifcOpenShell. I would like to split my ifc file into different files based on the type of the objects (e.g. I want to split in a file all the wall of a type, in another all the wall of another type, in another all the beams of a type ext.). Can someone show me an example on how to do it?

1