Jump to content

Orthogonal Views Extractor from STEP File

Python script for automated extraction of orthogonal views from STEP files using tools available on PiXYZ Studio software.

Image 1: Views extracted from considered solid visualised in PiXYZ

Asset Description

A python script to automate the extraction of orthogonal views of the six faces of solids extracted from STEP files using tools available on PiXYZ Studio software.

Asset Details

Technical Information

The implemented asset is a python script created with the aim of automating the extraction of the six orthogonal views (top, bottom, right, left, front, back) from STEP files using PiXYZ Studio software. The input of the algorithm is a file in STEP format, which is a standardized format for 3D model data exchange. The output of the algorithm is six images of the six orthogonal views (top, bottom, right, left, front, back) of the model. The whole procedure is automatized, allowing to reduce time and manual effort. Also, the users can specify image resolution, allowing them to tailor the output to their specific needs. The script is written in python, leveraging PIXYZ Studio's tools to visualize and manipulate the STEP files.

Usage

In order to use the implemented algorithm, the user has to start by downloading the script. Then, open the PiXYZ Studio software. Proceed by making sure the scripting window is open: if it is not then go to the ‘Window’ menu at the top, and tick the box next to ‘Scripting’. Once this is done, head over the ‘Scripting’ section, hover over the folder icon (that is the ‘Open a script’ button), and select the script downloaded earlier. After, several key parameters can be set to tailor the algorithm to the specific needs of the users. In particular, the following variables can be set:

  • folder_path: the path to the directory that contains the STEP file to be processed;
  • output_folder_path: the path to the directory where the generated images will be saved;
  • width and height: the resolution of the output images, that is the same for all the six extracted images.
  • Finally, once executed the script, it will generate the desired images.

    Maturity

    Development moved to another solution after reaching the current functional stage. The script performs its task but will not be maintained or improved upon in the future.

    Licence

    Mozilla Public Licence v2.0 - MPL 2.0

    Resources

    Acknowledgement

    This work was performed as part of the PERNOUD pilot in the context of the AI REDGIO 5.0 project

    Relevant Categories