11.3 Layer object

Objects can be superimposed by displaying them in different layers of a viewport.

Access
session.viewports[name].layers[name]


11.3.1 Layer(...)

This method creates a Layer object in the Layer repository.

Path
session.viewports[name].Layer

Required argument

name

A String specifying the repository key.

Optional argument

copyViewName

A String specifying the name of the layer to copy.

Return value

A Layer object.

Exceptions

None.


11.3.2 moveBefore(...)

This method moves the layer object before another object in the layer repository.

Required argument

name

A String specifying the name of the other Layer object.

Optional arguments

None.

Return value

None

Exceptions

None.


11.3.3 moveAfter(...)

This method moves the layer object after another object in the layer repository.

Required argument

name

A String specifying the name of the other Layer object.

Optional arguments

None.

Return value

None

Exceptions

None.


11.3.4  Members

The Layer object has members with the same names and descriptions as the arguments to the Layer method.

In addition, the Layer object can have the following members:

displayedObject

A Displayable object specifying the object to be displayed. The Displayable type is an abstract generalization. The concrete possible types are Part , Assembly , ConstrainedSketch , Odb , or XYPlot .

view

A View object specifying the object that controls viewing of the layer.

odbDisplay

An OdbDisplay object specifying the display options for the Odb object.

partDisplay

A PartDisplayOptions object specifying the display options for the Part object.

assemblyDisplay

An AssemblyDisplayOptions object specifying the display options for the Assembly object.