User Scripts¶
User created scripts that are more advanced than the Examples.
Index¶
CREATE SCREENSHOTS OF PARTS AND PRODUCTS
CREATE LINES NORMAL TO SURFACE
CREATE BOUNDING BOX¶
Creates a bounding box around the selected Body using the selected AxisSystem to orientate the bounding box.
See script header for more information.
CREATE SCREENSHOTS OF PARTS AND PRODUCTS¶
Creates screenshots of all parts and products within a given directory.
See script header for more information.
CREATE LINES NORMAL TO SURFACE¶
Creates lines normal to surface using all the points in the selected Geometrical Set.
Image showing surface and points.
Image showing lines after script has been run.
See script header for more information.
CREATE PARAMETERS FROM YAML¶
Creates parameter sets and parameters based on the contents of a YAML file.
Great for creating complex parameter structures.
See script header for more information.
DRAWING TEMPLATE¶
Creating a drawing template in the background view.
See script header for more information.
POINT COORDINATES RELATIVE TO AXIS SYSTEM¶
Get the point coordinates relative to an axis system.
See script header for more information.
RENAME INSTANCES IN PRODUCT¶
Sequentially renames the instances of products within a selected product.
See script header for more information.
SAVE DRAWINGS TO PDF¶
Loops through all the files (.CATDrawing) of a given directory and saves to PDF.
For CATDrawings the Document.export_data() method exports each sheet to a single PDF. This script uses pypdf to merge these single sheets into a single pdf for each drawing.
See script header for more information.
WING SURFACE FROM NACA PROFILE¶
Reads the contents of the NACA dat file sc20610.dat to create a wing surface.
See script header for more information.