Jump to content

GetName not working

Recommended Posts


I have a rectangle on a layer with Class "Border" and Name "A3 Border"


Can someone tell me why the following message does not return the name "A3 Border" please?


procedure test;
Layer ('Title Block');
SelectObj ((L = 'Title Block') & (C = 'Border'));
Message (GetName (FSObject (ActLayer)));
run (test);

Share this post

Link to post

Just to be clear 😊, the rectangle has the class "Border" and name "A3 Border". I want GetName to tell me it's name is "A3 Border".

Share this post

Link to post

Sorry, also the rectangle is a symbol with the name "A3 Border"


Ok, just tested this. I need to use GetSymName, not GetName



Edited by WhoCanDo

Share this post

Link to post

Sorry, misread your example. Though, similarly, there is a special function to get the name of a symbol: GetSymName()


You can also take a shortcut to the first selected object: FSActLayer

Share this post

Link to post

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.

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.


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...