CUROBJECT$ returns the name of an object in a Solution depending on the mode given.
CUROBJECT$(Mode%)
Arguments
Assume the relation
OBJNAM$ OBJNAME$ = CUROBJECT$UROBJECT$(Mode%)
is executed in a Solution objectHeatBalance objectHeatBalance.Dredge.Pump.2.Gearbox.LOcooler
For Mode% = 1, the CUROBJECT$ function returns the full object name, so all parents including instance numbers:OBJNAM$ = "Dredge.Pump.2.Gearbox.LOcooler"NOTE: The objects in the object-parents sequence which hold a @NOTINNAME attribute are not included in the result when Mode% = 1, so in this example the HeatBalance object will hold this attribute
For Mode% = 2, the CUROBJECT$ function returns the full object name translated in a text for the component in a drawing, so for the above object: "OBJNAM$" will be:
NOTE: The objects Dredge and pump will form one word with the pump instance number 2 if Dredge
holds holds an @FUNCTION @FUNCTION attribute. The object HeatBalance is not included in the result since the HeatBalance object holds an @NOTINNAME attribute.
For Mode% = 4,
thethe CUROBJECT$
functionfunction returns the full object name, so with all
parentsparents WITHOUTinstance numbers, so: OBJNAM$ = "Dredge.Pump.Gearbox.LOcooler"
NOTENOTE: Again, the
objectobject HeatBalance
isis not included in the result since the HeatBalance object holds a @NOTINNAME attribute.
For Mode% = 5,
thethe CUROBJECT$
functionfunction returns the object name of the one single object present in
aa Solutionobject, e.g.
ifif HeatBalance.Dredge.Pump.2.Gearbox
onlyonly contains an object LOcooler, CUROBJECT$(5) will return here the result "LOcooler".
Quick links: Function Functions overview | Attribute overview | Constants overview | Dimensions overview