designExists?()

Synopsis

This function is used to determine if a given design exists in the search path.

Syntax

designExists? ( Design_ As Name, Optional searchPath? As Boolean = False ) As Boolean
Argument Type Description
Design_ Name Name of the design to test.
searchPath? Boolean Optional; specifies whether the search path should be rescanned to look for the design if not currently shown (the file might have been moved into one of the libraries for example). The default value is False .

Example 1

Checks whether IvBlock design exists
Intent >designExists?( :IvBlock) 
--> True

Example 2

Attempts to find the design
Intent >designExists?( :IvUnknownDesign, searchPath? := True) 
--> False