Skip to content

During cadwork plugin development, changes to imported Python modules only take effect after restarting cadwork. This plugin let you reload all modules instantly, no restart needed.

License

Notifications You must be signed in to change notification settings

design-to-production/D2P-ReloadCadworkPythonModules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hot Reload

Logo

During cadwork plugin development, changes to imported Python modules only take effect after restarting cadwork. Hot Reload let you refresh all modules instantly—no restart needed.

Developed by Design-to-Production : https://www.designtoproduction.com/en/

Requirements

Developed and tested with cadwork 3d version 2025, build 390.

Installation

Download the repository and drop the plugin folder HotReload in your cadwork APIx64 folder or create a symlink to the APIx64 folder.

Cadwork guide : https://docs.cadwork.com/projects/cwapi3dpython/en/latest/get_started/ (note, the path for version 2025 is now ...\cadwork\userprofil_2025\3d\API.x64)

Usage

After you've made changes in your own python plugin and before running them, run Hot Reload instead of restarting cadwork

  1. Make sure you add the current directory to the system path at the top of your entry point (main python file):
    import sys, os
    sys.path.insert(0, os.path.dirname(__file__))
  2. subfolder modules are supported
  3. Symlinked modules are supported.

Limitations

  • The modules are re-imported in order of appearance in the system path which might fail if you have circular import.
  • If different projects are loading modules with the same name, the last loaded module will be used by all projects.

License

MIT License — see LICENSE for details.

About

During cadwork plugin development, changes to imported Python modules only take effect after restarting cadwork. This plugin let you reload all modules instantly, no restart needed.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages