Jump to content
Developer Wiki and Function Reference Links ×

GetSpaceNameForObj in VectorScript


pgreen

Recommended Posts

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(:HANDLE);
    BEGIN
        SetRField(h,'recordFormatName','fieldName',GetSpaceNameForObj(h));
    END;

BEGIN
   ForEachObject(SetREC, ((R IN ['recordFormatName'])));
END;
RUN(SetObjSpaceName);

 

Thanks for your help!

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...