- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I'm facing a very frustrating caching issue with a custom Python-based component I've created for AutoCAD Plant 3D, and I've exhausted all the standard solutions. I'm hoping someone here might have encountered a similar problem or can offer a fresh perspective.
The Problem:
I have a custom component whose geometry is defined by a Python script. I register it using the following workflow:
- ^C^C(arxload "PnP3DAcpadapter.arx");PLANTREGISTERCUSTOMSCRIPTS;
- QUIT and then restart Plant 3D.
This works perfectly for the first version of the script. However, when I modify the Python code (e.g., changing the geometry or dimensions), Plant 3D stubbornly uses the original, cached version of the component. The changes I've made to the script are completely ignored.
What I've Already Tried (and what didn't work):
I have attempted every cache-clearing method I can find, including:
- Manually deleting all .pyc and .xml files associated with the script (**.pyc, **.xml, ScriptGroup.xml, variants.xml, variants.map).
- Completely shutting down and restarting AutoCAD Plant 3D.
- Rebooting the computer.
- Running the built-in PnPLocalDataCachePurger.exe tool from the PLNT3D directory.
- Manually deleting the contents of all related cache folders, including:
- %TEMP%
- ExternalDataCache
Despite all these efforts, Plant 3D consistently reverts to the initial, cached version of the Python script. It seems there is a deeply embedded or undocumented cache that survives all these actions.
My Question:
Has anyone in this forum encountered this specific issue where PLANTREGISTERCUSTOMSCRIPTS fails to update a Python component after the initial registration? Is there an additional, hidden cache location or a different procedure required to force a complete refresh of a custom scripted component?
Any insights or suggestions would be greatly appreciated. Thanks in advance!
Solved! Go to Solution.