Custom Mirror - Intergraph Smart 3D - Reference Data

Intergraph Smart 3D Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Reference Data
Search by Category
Reference Data
Smart 3D Version
12 (2018)

Some business objects delegate the mirror implementation for the symbol code which allows the symbol writer to override the mirror behavior of a specific part; for example, a stair might need to be flipped around the top support on mirror.

The 3D API framework provides an interface ICustomMirror which should be realized by the symbol to support custom mirror behavior for mirroring parts.

Supporting custom behavior for mirror on a symbol involves the following steps:

  1. Realize ICustomMirror on the symbol.

  2. Set properties which effect mirror behavior inside the Mirror method.

The following code example shows how to implement mirror for a ladder:

Mirror(ByVal oBusinessObject As BusinessObject, ByVal oBusinessObjectOrig As BusinessObject, ByVal oMirrorPlane As IPlane, ByVal oTransformMatrix As Matrix4X4, ByVal bIsCopy As Boolean)

'Add custom behavior for mirror here based on mirror behavior.

Dim iMirrorBevahior As Integer = CInt(SymbolHelper.GetLongProperty(DirectCast(oPart, BusinessObject), SPSSymbolConstants.IPART, SPSSymbolConstants.MIRRORBEHAVIOROPTION))

If iMirrorBevahior = SPSSymbolConstants.REPLACEMENTPARTVALUE Then