PdcToolList.Count

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

Count as long

Description

Returns the total count of tool objects

Notes

This property returns the number of tools in the toollist attached to the selected operation.

Code example

This code example returns the number of tools attached to the first operation.

dim objCalc
dim objOperation
dim objTools

  set objCalc = pdc.ActiveCalculation
  set objOperation = objCalc.OperationList(0)
  set objTools = objOperation.Tools
  msgbox "number of tools: " & objTools.Count

  'the short version: msgbox objCalc.OperationList(0).Tools.Count

Availability

Available since March 2008.