Adding or changing a custom support script currently requires closing and reopening Plant 3D before the change takes effect.
`PLANTREGISTERCUSTOMSCRIPTS` alone does not refresh the running session. Autodesk forum discussions have indicated for years that restarting Plant 3D is the only solution.
Please make an option for the register command to refresh the scripts in the current session.
This is possible. Plant 3D loads the script library at startup and maintains it in five places:
* Files on disk (`variants.map` and the individual `.xml` files)
* The .NET content adapter's in-memory script list
* The content adapter's folder cache
* The embedded Python script list
* The generated geometry, stored in the drawing as a block
The three middle caches are cleared when Plant 3D restarts. The generated block remains in the drawing until it is purged.
I wrote a plugin that clears all five. It allows a script to be reloaded and used without closing Plant 3D.
If you would like a free copy to test in your environment, LIKE this post then send me a DM for the link. Note that it is beta and 'proof of concept' only. No support will be provided.
The package includes builds for Plant 3D 2021–2024 and 2025–2026. I've only tested it on 2024. It relies on undocumented internals and is not supported by Autodesk, so consider it a workaround rather than a fix.
Can't find what you're looking for? Ask the community or share your knowledge.