Symbolic Link Creation Instructions (if your cadwork API directory is not in the same directory as your Python scripts)
This explains how to create a symbolic link from a directory (in my case Debug) to the cadwork API directory (
D:\cadwork\userprofil_2025\3d\API.x64).
Creating a symbolic link allows you to develop Python scripts in this directory while making them directly accessible in the cadwork API directory without duplicating files.
Using Command Prompt (Administrator)
Press Win + X and select "Command Prompt (Admin)"
Run the following command:
mklink /D "D:\cadwork\userprofil_2025\3d\API.x64\Debug" "D:\source\Python\Debug"C:\Users\MichaelBrunner>mklink /D "D:\cadwork\userprofil_2025\3d\API.x64\Debug" "D:\source\Python\Debug"
symbolic link created for D:\cadwork\userprofil_2025\3d\API.x64\Debug <<===>> D:\source\Python\DebugUsing PowerShell (Administrator)
Press Win + X and select "Windows PowerShell (Admin)"
Run the following command:
New-Item -ItemType SymbolicLink -Path "D:\cadwork\userprofil_2025\3d\API.x64\Debug" -Target "D:\source\Python\Debug"After creating the symbolic link, any file placed in this directory will be accessible from the cadwork API directory, and vice versa.
If you need to remove the symbolic link:
rmdir "D:\cadwork\userprofil_2025\3d\API.x64\Debug"PyQt is a set of Python bindings for The Qt Company’s Qt application framework. PyQt is available in cadwork, so you don't need to install it separately for running the scripts. You have to install it for the development process.
pip install PyQt5Python and PyQt: Building a GUI Desktop Calculator
Create the UI file using Qt Designer and convert it to Python code using the pyuic5 command.
pyuic5 debug_dialog.ui -o ui_debug_dialog.py
