Synopsis

PDX_MSGT sgdx_EntityDEToGDXAttributes(long option, MDA_PTR step_db_ptr, MDA_PTR gdx_db_ptr, MDA_PTR *gdx_attr_ptr)

Purpose

Given a GDX and its STEP entity, Creates a GDX Attributes Entity.

Description

Given a GDX curve or surface entity (gdx_db_ptr) and its original STEP entity (step_db_ptr), program creates a GDX Attributes entity. The program gets label, level, color and hierarchy of the given STEP entity (Curve/Surface). According to AP214 format, entity color is defined through Styled_item, which can be defined at SOLID, FACE and EDGE_CURVE levels. Program derives curve/surface color from its parents (Edge_curve/Face). If not defined at the parent level then it will search upper level parents.

Input

option

SGDX_ATTRIBUTE_PFID_LABEL

Map STEP PFID to attribute label if STEP name is not set

SGDX_USE_GDX_FOR_NATIVE

Use GDX dbptr instead of native dbptr when creating attribute. This is necessary when processing multiple step files because native dbptr is not unique.

step_db_ptr

Original STEP entity pointer

gdx_db_ptr

GDX Geometric entity pointer

Output

gdx_attr_ptr

GDX Attribute entity pointer

Return

      SGDX_NOERR
      SGDX_MALLOC_ERR
      SGDX_INVALID_MODEL
      Low Level error return
      .fi