Hide menu
Loading...
Searching...
No Matches
ModelData_SceneGraphElement

Table of Contents

Base class for part, instance and assembly.

Extends

Constructor

new ModelData_SceneGraphElement()

Creates an instance of ModelData_SceneGraphElement.

Members

appearance: ModelData_Appearance | null

Appearance of the element.

Note: By convention assemblies may not have appearances.

If one is set using this function it can be ignored by other CAD Exchanger functions (e.g. export).


pmi: ModelData_PMITable | null readonly

PMI table of the element.


properties: ModelData_PropertyTable | null readonly

Property table of the element.

Methods

accept(theVisitor) ⇒ Promise<void>

Accepts an element visitor.

The order of visiting depends on the type of this object:

Parameters:

Param Type Description
theVisitor ModelData_SceneGraphElementVisitor

addPMI(thePMI)

Adds a PMI table to the element.

If this object did not have PMI yet, then thePMI are just linked to this object. Otherwise, the elements of thePMI are appended to existing PMI table (see ModelData_PMITable#add()).

Parameters:

Param Type Description
thePMI ModelData_PMITable

addProperties(theProperties)

Adds a property table to the element. If this object did not have properties yet, then theProperties are just linked to this object. Otherwise, the elements of theProperties are appended to existing property table (see ModelData_PropertyTable#add() method).

Parameters:

Param Type Description
theProperties ModelData_PropertyTable Properties to add.