Creo Mapkey Os - Script Example
Zalo
Facebook

Creo Mapkey Os - Script Example

Set CreoAsyncConnection = CreateObject("Creo.CreoAsync.1")

: Re-import the results or perform a final Creo action. Example structure in config.pro : creo mapkey os script example

: This is the critical "bridge" command. It tells Creo: "Stop looking at CAD commands and send the following text to the Operating System." Set CreoAsyncConnection = CreateObject("Creo

: Ensure your OS command ends with a semicolon ( ; ) so Creo knows where the script ends and the next mapkey action begins. creo mapkey os script example

By calling an OS script, a Mapkey bridges the gap between Creo’s internal API and your Windows/Linux file system.

!MK_RECT_EXTRUDE !OS=1 !Select Top plane SELECT(3,FEATURE,TOP) !Create Sketch MENU_ACTIVATE(ModelEdit) MENU_COMMAND(NewSketch) !Sketch: create rectangle by corner points SKETCH_CREATE_RECTANGLE( X1=-10, Y1=-5, X2=10, Y2=5 ) !Finish sketch MENU_COMMAND(Accept) !Extrude MENU_ACTIVATE(Geometry) MENU_COMMAND(Extrude) SET_EXTRUDE_DEPTH(5) MENU_COMMAND(Accept) !Save MENU_COMMAND(Save)