Jump to content
Julian Carr

Sheet Layer Number and Name Export

Recommended Posts

Anyone have a script handy that will export a list containing sheet layer names and numbers?



Share this post

Link to post

No, but this thread has a script that will make a worksheet of design layers.


Change the GetObjectVariableInt(H2,154)= 1. (I think Sheet Layers are 2) and you should get a worksheet of the sheet layers. Adding the Sheet Numbers should be relatively easy. I would probably change LayerSort to a Struct with two strings. Store the name and number in the struct and then add a second SetWSCellFormula line.



Share this post

Link to post
Posted (edited)

Hi Julian,

   Do you mean something like this?


	CR = chr(13);
	H :Handle;
	H := FLayer;
	while (H <> nil) do begin
		if (GetObjectVariableInt(H, 154) = 2) then 
			AlrtDialog(concat('Sheet # = ', GetLName(H), CR, 
					'Sheet # [Title] = ', GetObjectVariableString(H, 162)));
		H := NextLayer(H);
	end;		{ while }


By Export, do you mean write to a file? If not, how to format it?





Edited by MullinRJ

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