WhoCanDo Posted April 3, 2019 Share Posted April 3, 2019 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); Quote Link to comment
JBenghiat Posted April 3, 2019 Share Posted April 3, 2019 Layers have their own name function: GetLName() Quote Link to comment
WhoCanDo Posted April 3, 2019 Author Share Posted April 3, 2019 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". Quote Link to comment
WhoCanDo Posted April 3, 2019 Author Share Posted April 3, 2019 (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 April 3, 2019 by WhoCanDo Quote Link to comment
JBenghiat Posted April 3, 2019 Share Posted April 3, 2019 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 Quote Link to comment
WhoCanDo Posted April 4, 2019 Author Share Posted April 4, 2019 Thanks, forgot about FSActLayer 😃 Quote Link to comment
Recommended Posts
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.