MachineElements.countByType Method
Parent Object:
MachineElementsDefined in namespace "adsk::cam" and the header file is <Cam/Machine/MachineElements.h>
Description
Number of elements of specified type.
Syntax
"machineElements_var" is a variable referencing a MachineElements object.returnValue = machineElements_var.countByType(typeId)
|
"machineElements_var" is a variable referencing a MachineElements object.
#include <Cam/Machine/MachineElements.h>
returnValue = machineElements_var->countByType(typeId);
|
Return Value
uinteger |
Returns the number of elements of the requested type. Returns zero if no elements match the specified type ID. |
Parameters
typeId |
string |
Element typeId to filter. See staticTypeId for the desired element type. |
Version
Introduced in version April 2023