Replies: 1 comment 6 replies
-
Not sure I have any advice, there’s lots of ways you can load modules through one of the AutoLISP mechanisms I think you can use a .bundle too. you just have to make sure python is loaded early. pyrx_onload.py was intended for this, the installer no longer replaces or installs the file |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm thinking about this scenario.
Based on
PyRx
, I created an extension for Autocad for which I would like to create a simple installer.In the global directory (
%localappdata%\Programs\PyRx
) I would have to install everything related toPyRx
(skip this step if it is already installed).I would like my extension to be able to be added as automatically loaded when CAD starts.
I wouldn't want to modify the global
pyrx_onload.py
for this.I also cannot (under current assumptions) add my own
pyrx_onload.py
becausePyRx.arx
may already be loaded and then mypyrx_onload.py
will not be loaded.I see two solutions:
pyrx_onload.py
file fromPyRxLoader.arx
, then just rename it toMyExtName.arx
- mypyrx_onload.py
file will be loaded, andPyRx.arx
will be skipped because it is already loaded,PyRx.arx
, e.g. registry entries pointing topyrx_onload.py
files of specific extensions.Beta Was this translation helpful? Give feedback.
All reactions