Can you Reference an Object by Name in eQUEST Using BDL Functions?
Is there anyway to return an Object/Components name in eQUEST? For example, if a space wanted to get its parent's (a floor) name and assign certain parameters based on the returned name. I can only see to be able to return the value of a parent's keyword value rather than the parent's actual name.
The following example would return the value of the parent's MULTIPLIER
keyword, but I would like to be able to return parent's name.
LIGHTING-W/AREA = (
{switch (Parent( MULTIPLIER ))
case "L01": #pa("L01LTG")}
Comments
I couldn't find anything in the documentation (DOE2.2 Volume 3 - Topics, p.66 and following). I don't have a Windows machine handy to test this. I'm assuming you've tried
#P("NAME")
and that it didn't work?Per eQUEST the keyword is "NAME", but that doesn't work and neither does "UNAME" or "U-NAME".
What are you trying to do? Find a pattern in the name? Or have an actual equality like
Name of parent = "Floor 1"
?Keyword/Value assignment based on floor name.
In this case, a workaround might be possible by trying to match the SymIndex. You would do something like
if ParentSym() = SymIndex( "Floor 1", "FLOOR" )
. What do you think? Can you try that?