Creo Mapkey Os Script Example -
In Creo Parametric, you can run an file) from a mapkey by using the
OS Script: export_bom_to_db.py
import sys
import os
import datetime
import csv
Then your OS script reads that file.
# Place rectangle centered: use corner points at +/- Width/2, +/- Height/2
SKETCH_POINT(-Width/2, -Height/2)
SKETCH_POINT(Width/2, -Height/2)
SKETCH_POINT(Width/2, Height/2)
SKETCH_POINT(-Width/2, Height/2)
SKETCH_CONNECT_POINTS_RECT
Why add an OS Script?
Native Mapkeys cannot: creo mapkey os script example