ddObjHasNamedObj
ddObjHasNamedObj(b_objIdt_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
Value Returned
Examples
l = ddGetObj( "l1" ) => dd:2543176
ddObjHasNamedObj(l "c1") => t
ddObjHasNamedObj(l "v1") => nil
Return to top