EGPrecision Example
Examples:
l CrossSectionBlock (Civil Engineering Feature)
l ProfileBlock (Civil Engineering Feature)
Sub Example_EGPrecision_CrossSectionBlock()
' This example returns the existing 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 existing ground precision for the alignment cross section at station " & station & " is: " & _
alignXSect.EGPrecision, vbInformation, "EGPrecision Example"
End Sub
Sub Example_EGPrecision_ProfileBlock()
' This example returns the EGPrecision for the first ProfileBlock
' in the collection
Dim alignProf As AeccProfileBlock
Set alignProf = AeccApplication.ActiveDocument.ProfileBlocks.Item(0)
MsgBox "The EGPrecision for the first ProfileBlock in the collection is: " _
& alignProf.EGPrecision, vbInformation, "EGPrecision Example"
End Sub