NearestInst Function

Returns value of property given as argument 1 for nearest instance to cursor. If the nearest instance to the cursor does not possess the specified property, an empty string will be returned. Protected instances not possessing the property will be excluded altogether from the search.

Arguments

Number Type Compulsory Default Description
1 string Yes Property name

Returns

Return type: string

Returns property value of nearest instance. The function will return an empty vector if no schematic is open or the supplied schematic id is invalid

See Also