Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

ddObjHasNamedObj

ddObjHasNamedObj( 
b_objId 
t_fileName 
) 
=> t / nil 

Description

Returns t if b_objId has a child object named t_fileName.

b_objId can be only a library, cell, or view identifier. Scans objects relative to the given object and looks for something that matches by name. This function looks for the object in the library’s temporary directory first; if it is not found, it looks for it in the master directory. However, if the object itself is a library, this function looks for the children in the library (the master directory).

ddObjHasNamedObj is meant to be a “fast” lookup function (as fstat is not used in the scan). To get the ddId, use ddGetObj using the given object as the context ID and specifying t_fileName as the appropriate relative argument.

Arguments

b_objId

The object file ID.

t_fileName

The filename to search for.

Value Returned

t

The file was found.

nil

The file was not found.

Examples

l = ddGetObj( "l1" ) => dd:2543176 
ddObjHasNamedObj(l "c1") => t
ddObjHasNamedObj(l "v1") => nil

Return to top
 ⠀
X