EN: How to update CATDrawing standard with CATAnnStandardTools

EN: How to update CATDrawing standard with CATAnnStandardTools

Symptom

After CATIA V5 upgrade, users can not update Drawing standard xml in Page - > Setup.

Invalid Standard

The selected standard cannot be read because it is either not well-formed or of a lower level than the current standard.

You should use a well-formed XML-file of a level equivalent or higher than the current standard of your document.”

Steps to recreate.

  • Create Drawing using a default (ISO) .xml from current version of CATIA.

  • Try to switch to old standard using Page Setup
    …Error message occurs…

Comment:
If you create a drawing using an old xml, changing to another old xml can work. Similarly, by starting Catia in “admin” mode to edit using Tools-Standard, you can edit old, and save it, but it will still be old format and can give the error message shown here.

Solution

Use CATAnnStandardTools.exe batch tool, placed in \code\bin\ folder of the current version of CATIA V5, to migrate old CATDrwStandard or upgrade XML standard files, and replace new xml files, with the updated ones, in CATCollectionStandard\drafting folder specified in env-file.

Detailed steps

  • Open MS-Dos prompt in the location of your \code\bin\ folder

  • Run one of the following commands.

CATAnnStandardTools UPGRADE_ALL [dir]

Upgrades all XML standard files to folder specified in [dir]

CATAnnStandardTools UPGRADE XXX [dir]

Upgrades XML standard file X.xml to folder specified in [dir]

CATAnnStandardTools MIGRATE_ALL [dir]

Migrates all CATDrwStandard to folder specified in [dir]

CATAnnStandardTools MIGRATE XXX [dir]

Migrates CATDrwStandard file X to folder specified in [dir]

 

Notes:

  • In the example above, the files that are to be handled, are placed in the env-file pointed to with these files.

    “installationfolder”\win_b64\EnvDir.txt

    “installationfolder”\win_b64\EnvName.txt

  • It is possible to set parameter that points to the folder where the drafting folder containing xml’s are. In the example below, the old xml files are placed inside:

    C:\temp\oldDrwStandard\drafting\

    In the CMD prompt, to use these files use command:

    set CATCollectionStandard=C:\temp\oldDrwStandard
    CATAnnStandardTools UPGRADE_ALL C:\temp\updatedDrwStandard

 

In the example below, a number of XML files have been placed in …\STANDARDS_TO_UPDATE\drafting\, and that folder has also been pointed to in env-file.

Important:
The batch tool will look in BOTH the …\STANDARDS_TO_UPDATE\drafting\ AND whatever files are placed in default installation folder install root\resources\standard\drafting.

So, it is important to not have duplicate names if running command in this way!

The files gets updated and placed in …STANDARDS_TO_UPDATE\converted folder.



 

TECHNIA CONFIDENTIAL