Jump to content
Developer Wiki and Function Reference Links ×

Sheet Layer Number and Name Export


Recommended Posts

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.

 

HTH.

Link to comment

Hi Julian,

   Do you mean something like this?

 

PROCEDURE xxx;
CONST
	CR = chr(13);
VAR
	H :Handle;
	
BEGIN
	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 }
END;
Run(xxx);

 

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

 

Raymond

 

 

Edited by MullinRJ
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...