Jump to content
Developer Wiki and Function Reference Links ×

Sheet Layer Stacking Order


andyCH

Recommended Posts

Hi,

I'm kind of stuck on the search weather it is possible to read the Stacking Number/Order (#) from the Sheet Layer Panel.

I couldn't find any information on this (http://developer.vectorworks.net/index.php/VS:Function_Reference_Appendix#layer). See the screenshot if it's not clear, what I mean.

I need to get this info to use it together with

layNum := GetLName(layHand);
layTit := GetObjectVariableString(layHand,159);

for a labeling script.

I'm aware of HMoveBackward() but have no clue if there is a way to use this for my purpose as I don't want to change the stacking state.

Any comments are welcome!

Cheers

Link to comment
  • 1 month later...

Running the following will always produce the list in order from bottom to top. SetName will rename the handle and may be what your looking for.

procedure L;

var

h : handle;

i, LC : integer;

begin

h := FLayer;

LC := NumLayers;

for i := 1 to LC do

begin

message (LC, ' ',i, ' ', GetLName (h)); wait (2);

h := NextLayer (h);

end;

end;

run (L);

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...