Fast & precise
Move rooms and symbols with mouse or set their sizes and distances numerically when high precision is required.
Multi-platform
Use your mobile device on location and complete the work on your computer at the office.
3D mode
See your project in 3D, as many floors as you need. Camera can be freely positioned.
Create detailed and precise floor plans. See them in 3D or print to scale. Add furniture to design interior of your home. Have your floor plan with you while shopping to check if there is enough room for a new furniture.
Add this code to your config.pro file or load it via the Mapkeys dialog.
This mapkey tells Creo to run an internal UI macro to export the BOM text file, and then immediately triggers the Python script via OS execution to process it.
What do you want the external script to perform?
If you need to perform complex data processing—such as extracting a Bill of Materials (BOM) or renaming files based on company rules—Windows batch files fall short. You can pass parameters from Creo to an external Python script. creo mapkey os script example
:: Check if Notepad++ is installed if exist "C:\Program Files\Notepad++\notepad++.exe" ( start "" "C:\Program Files\Notepad++\notepad++.exe" "%file_path%" ) else ( start "" notepad.exe "%file_path%" )
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
:: Check if Release folder exists, if not, create it if not exist "%target_folder%" mkdir "%target_folder%" Add this code to your config
: Create a mapkey that runs the purge command in your working directory to delete old iterations and save disk space. Key Benefits of OS Scripts
import sys import os def main(): if len(sys.argv) < 2: print("No file provided.") return bom_file = sys.argv[1] if os.path.exists(bom_file): # Add your custom Excel parsing or ERP upload logic here print(f"Successfully processed: bom_file") if __name__ == "__main__": main() Use code with caution. The Creo Mapkey
Automating Creo Parametric: How to Run OS Scripts Using Mapkeys If you need to perform complex data processing—such
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
In a Creo mapkey, the command sequence ~ Run OS tells Creo to pause its internal operations and pass a command string to the Windows shell (cmd.exe). This is the bridge between CAD modeling and system-level automation. Key Syntax Components : Defines the start of the macro. $F7 : The keyboard shortcut (in this example, the F7 key). @SYSTEM : Tells Creo to execute a system-level command.
Sometimes you need to run tasks silently or run modern scripts like PowerShell. Because Windows blocks unsigned PowerShell scripts by default, you must pass an execution policy bypass parameter through the mapkey.