PdcTool.Number

From External Bemet Wiki
Jump to: navigation, search

Contents

Declaration

Number as long

Description

Returns or changes the quantity of a tool

Notes

This property returns or sets the number (quantity) for the selected tool.

Code example

This code example returns the number (quantity) for the first tool that is added to the first operation.

dim objCalc
dim objOperation
dim objTools
 
  set objCalc = pdc.ActiveCalculation
  set objOperation = objCalc.OperationList(0)
  set objTools = objOperation.Tools
  msgbox "quantity for this tool: " & objTools(0).Number
 
  'the short version: msgbox objCalc.OperationList(0).Tools.Items(0).Number

Availability

Available since March 2008.

Personal tools
Namespaces
Variants
Actions
PdC Scripting Helpfile
Toolbox