8.2.2. Error message: "Can't find module vormain"

Fixing the error message "Can't find module vormain"

In this article, you will learn how to resolve the "Can't find module vormain" error message in AutoCAD Plant 3D. This error typically occurs when the content folder was not correctly migrated during a version upgrade.

Prerequisites

Step-by-Step Instructions

  1. Identify the current content path: Check which content folder is configured in your current Plant 3D version. The error occurs if an outdated content folder (e.g., from version 2021) is specified in a newer version (2022 or higher).

    Expected result: You determine that the path points to a folder from an older version.

  2. Restore the original content folder: Switch to the original content folder that came with your installed Plant 3D version (e.g., for Plant 3D 2023, the Content 2023 folder).
  3. Migrate your custom specs: Copy your own specs and catalogs from the old folder into the corresponding structure of the new content folder.

    Important: The default structure and system files of the new content folder must not be overwritten during this process.

  4. Perform the registration again: Re-enter the command PLANTREGISTERCUSTOMSCRIPTS in the Plant 3D command line.

    Expected result: The command executes successfully without the error message Can't find module 'vormain'.

Important Notes

Troubleshooting