Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Command Window​.

  • Last UpdatedJan 06, 2026
  • 3 minute read

AP203 files can be imported to Design by using the IMP command. The IMP command can be used in command macro files to automate the loading of AP203 files.

The IMP command has the following options:

IMP <Root Directory or File Name> [TO <id>] [AS <EQUI, VOLM or

SUBE>] [SUBEQUI] [VALIDATE] [LOG <log filename>]

Note: The command options shown inside square brackets [] are optional.

<Root Directory>

The root directory in a file system that contains STEP AP203 files to be imported. An Equipment (EQUI) or Volume Model (VOLM) element will be created for each AP203 file successfully imported from the hierarchy.

<File Name>

Filename within "" (may include spaces), or starting /. An Equipment (EQUI) or Volume Model (VOLM) element will be created for an AP203 file successfully imported.

TO <id>

Design element identity. The name or reference number of a SITE or APPLDA element that will contain the imported models. ZONE elements are created automatically when models are imported. These ZONE elements will be owned by the given SITE or APPLDA, and each ZONE will contain one or more EQUI of VOLM elements.

If the TO command option is omitted the Current Element (CE) is used.

AS EQUI

Defines the type of element created for each imported STEP file.

AS VOLM

If the AS command option is omitted, imported models are created as VOLM elements.

AS SUBE

A SUBE element is created for each imported STEP file.

SUBEQUI

Only relevant if imported AS EQUI:

  • When the STEP file contains assemblies a sub-equipment level is created beneath the EQUI element. The assembly hierarchy from the STEP file is flattened (if it has more than one level) and mapped to the SUBE level.

  • The generic primitives/curves belonging to a certain assembly (tree) are arranged beneath the according sub-equipment.

VALIDATE

Creates a file for each imported model that can be used to help validate the import. This option is normally omitted unless there is a specific need to inspect the information written to this file.

LOG <log filename>

This command option specifies the filename of the log file produced that details the history of the translation from the AP203 format file.

If the LOG command option is omitted, a file called translator.log is created in the root directory.

CTOL<tolerance>

This command option specifies the tolerance of a faceted approximation that might be created during the import
(tessellation cache).

If the CTOL command option is omitted or if the tolerance is 0, no faceted approximation will be created.

REFACET Command

An already imported model can be (re-)faceted by selecting it in the Design Explorer and running the REFACET command.

The REFACET command has the following options:

REFACet <ELEM> CTOL <tolerance> [FORCE]

ELEM

Element to be faceted can be SITE, ZONE, EQUI, SUBE,VOLM or GENPRI. All GENPRI elements beneath are faceted.

CTOL<tolerance>

Specifies the tolerance of the faceted approximation to be created. When a faceted approximation already exists and the requested tolerance is in the interval 0.8 * oldTol .. 4.0 * oldTol the model will not be re-facetted.

FORCE

Forces the model to be re-faceted with the requested tolerance.

Examples

IMP /C:\AP203Models\model.stp TO /IMPORTAREA AS VOLM

Imports model.stp found under the directory C:\AP203Models to a SITE or APPLDA element called /IMPORTAREA. A ZONE element is created and a VOLM element is created for the *.stp file.

IMP /C:\AP203Models\model.stp

Imports model.stp found under the directory C:\AP203Models to the current element, which must be a SITE or APPLDA type element. A ZONE element is created and a VOLM element is created for the *.stp file.

IMP /C:\AP203Equipment AS EQUI

Import all .stp files found under root directory C:\AP203Equipment to the current element. A ZONE element is created for each folder in the C:\ AP203Equipment hierarchy. Within each ZONE, an EQUI element is created for each .stp file in the corresponding folder.

REFAC CE CTOL 5 FORCE

REFAC /MYEQUI CTOL 1

Naming

When models are imported, the ZONE and EQUI or VOLM elements are named automatically. The name used is based on the folder name and the .stp filename. If a model is imported more than once, a suffix is added to the filename so that the names of new elements remain unique.

In This Topic
TitleResults for “How to create a CRG?”Also Available in