Is there a way to recreate the GetSpaceNameForObj request in VectorScript? A function that will return an array of Space object names that an object is inside of?
I'm trying to write a script that will write the space names an object is inside of to a record field. Soemthing like this.... except the "GetSpaceNameForObj" isn't a VectorScript function.
PROCEDURE SetObjSpaceName;
PROCEDURE SetREC(h :HANDLE);
BEGIN
SetRField(h,'recordFormatName','fieldName',GetSpaceNameForObj(h));
END;
BEGIN
ForEachObject(SetREC, ((R IN ['recordFormatName'])));
END;
RUN(SetObjSpaceName);
Thanks for your help!