Modify Assembly Outputs - 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)

As noted earlier, output will already exist with subsequent invocations of the EvaluateAssembly method. To modify the output, cast the output to the constructed business object class and manipulate the object:

<AssemblyOutput(2, SPSSymbolConstants.Pier)> _

Public m_oPierAssemblyOutput As AssemblyOutput

.

.

Public Overrides Sub EvaluateAssembly()

Dim oPierComponent As FoundationComponent = Nothing

' construct the pier (if not generated yet)

If m_oPierAssemblyOutput.Output Is Nothing Then

oPierComponent = CreateComponent(SPSSymbolConstants.Pier)

m_oPierAssemblyOutput.Output = oPierComponent

Else

oPierComponent = DirectCast(m_oPierAssemblyOutput.Output, FoundationComponent)

End If

oPierComponent.Origin = New Position(1, 2, 3)

.

.