Jump to content
Developer Wiki and Function Reference Links Read more... ×
WhoCanDo

GetName not working

Recommended Posts

Hi,

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;
begin
Layer ('Title Block');
DSelectAll;
SelectObj ((L = 'Title Block') & (C = 'Border'));
Message (GetName (FSObject (ActLayer)));
end;
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
Posted (edited)

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

 

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

 

Thanks

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

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.

×