RightWidth Example

Land Auto

RightWidth Example

Sub Example_RightWidth()
    
    ' This example returns the right width for the
    ' first alignment cross section in the collection.
    Dim alignXSects As AeccCrossSectionBlocks
    Dim alignXSect As AeccCrossSectionBlock
    Set alignXSects = AeccApplication.ActiveDocument.CrossSectionBlocks
    Set alignXSect = alignXSects.Item(0)
    
    'Get the station for the first alignment cross section in the collection
    Dim station As String
    station = alignXSect.station
    
    MsgBox "The right width for the alignment cross section at station " & station & " is: " & _
        Format(alignXSect.RightWidth, "0.00"), vbInformation, "RightWidth Example"
    
End Sub