andyCH Posted August 22, 2014 Share Posted August 22, 2014 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 Quote Link to comment
WhoCanDo Posted October 16, 2014 Share Posted October 16, 2014 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); 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.