IsComponent Function

Determines whether a schematic instance is a hierarchical component. Schematic instance is defined using a property name and value.

Arguments

Number Type Compulsory Default Description
1 string Yes Property name
2 string Yes Property value
3 real No -1 Schematic ID

Argument 3

Schematic ID as returned by the OpenSchematic function. This allows this function to be used with a schematic that is not open or not currently selected. If equal to -1, the currently selected schematic will be used.

Returns

Return type: real

Returns 1.0 if specified instance is a component, otherwise 0.0. The function will return an empty vector if no instance can be identified