FGPrecision Example

Land Auto

FGPrecision Example

Examples:

l CrossSectionBlock (Civil Engineering Feature)

l ProfileBlock (Civil Engineering Feature)


Sub Example_FGPrecision_CrossSectionBlock()
    
    ' This example returns the finished ground percision 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 finished ground precision for the alignment cross section at station " & station & " is: " & _
        alignXSect.FGPrecision, vbInformation, "FGPrecision Example"
    
End Sub

Sub Example_FGPrecision_ProfileBlock()
    
    ' This example returns the FGPrecision for the first ProfileBlock
    ' in the collection
    Dim alignProf As AeccProfileBlock
    Set alignProf = AeccApplication.ActiveDocument.ProfileBlocks.Item(0)
    
    MsgBox "The FGPrecision for the first ProfileBlock in the collection is: " _
         & alignProf.FGPrecision, vbInformation, "FGPrecision Example"
    
End Sub