StrMfgFabMarginParRule.vbp - Intergraph Smart 3D - Reference Data - Hexagon

Intergraph Smart 3D Structural Manufacturing Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Structural Manufacturing
Search by Category
Reference Data
Smart 3D Version
13

Determines the values to use to populate the ribbon bar of the Fabrication Margin command.

Visual Basic Project: [Programming Resources Folder]\Programming\ExampleCode\StructManufacturing\Rules\Margin\Fabrication\Parameters\StrMfgFabricationMarginParameters.vbp

Compiled Rule: [Reference Data Folder]\SharedContent\bin\StructManufacturing\StrMfgFabricationMarginParameters.dll.

Bulkload: FabricationMargin sheet of StructMfgSettings.xls

StrMfgFabricationMarginParameters.vbp contains no selection rules.

Controlling the Way Margins are Applied

Use the MarginMode value in the existing API to control which parts the software includes when you use the Margin by Assembly Connections command. For example, to create a margin for all connected parts except collar parts, set the MarginMode to -1 as shown in the example below.

Private Sub IJDMarginByConnRule_GetMarginParametersForPart( ByVal pDispPartObj As GSCADMfgRulesDefinitions.IJDObject,

………….

………….

………….

………….)

………….

………….

'Check if it is a collar Plate

If (TypeOf pDispPartObj Is IJSmartPlate) Or (TypeOf pDispPartObj Is IJCollarPart) Then

          MarginMode = -1 ‘With Mode = -1, the Margin will not be created on this Part

Exit Sub

End If