PC-DMIS 2021.1 Object Library
HitCount Property
See Also  Send Topic Feedback | See Object Hierarchy Chart
PCDLRN ActiveX DLL > ReadoutWindow Object : HitCount Property

Glossary Item Box

Description

Read Only: Returns the number of hits currently shown in the readouts window

Syntax

Visual Basic
Public Property HitCount As Long

Example

Private Sub CommandHitCount()
' This subroutine returns the number of hits
Dim App As PCDLRN.Application
  Set App = CreateObject("PCDLRN.Application")
  Dim Part As PCDLRN.PartProgram
  Set Part = App.ActivePartProgram
  Dim DRO As PCDLRN.ReadoutWindow
  Set DRO = Part.GetReadoutWindow(1)
  MsgBox "Numhits = " & DRO.HitCount
End Sub

See Also

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.