SU Layer Files

The ideal place for beginners to get help using SketchUp

SU Layer Files

Postby rhankc » Mon Dec 24, 2007 5:49 pm

Where is the layer file stored and what is the extension for the SU layer list. And can you edit layer lists directly from that location?
0
Hank

rhankc 
 

Re: SU Layer Files

Postby TIG » Mon Dec 24, 2007 7:27 pm

rhankc wrote:Where is the layer file stored and what is the extension for the SU layer list. And can you edit layer lists directly from that location?


The layers live within the model file itself. Didier's LayerManager does lots of clever things including import/export of layers...

My specialised script [LayerExIm.rb v1.0] just imports/exports lists of layer names (xxx.layers)...
See here: viewtopic.php?p=15372#p15372
Usage: Select Export and a list of layers is made in the model's folder
called 'model_name.layers'.
Select Import, a browser lets you select the 'xxx.layers' file
and then it's merged into the current model's layers.
You can also write your own layer list, use a plain text editor
[e.g. NotePad.exe] and suffix it .layers; the layer names
should be one per line, use normal text characters [no tabs]...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: SU Layer Files

Postby rhankc » Mon Dec 24, 2007 7:37 pm

I can see where the layer 0 is in the .skb, After writing the list in notepad do you just paste it in at the layer 0 end?

And thanks for the extra layer ext rb. I'll give it a shot.
0
Hank

rhankc 
 

Re: SU Layer Files

Postby rhankc » Mon Dec 24, 2007 10:01 pm

The layer list that is made in Notepad ie: newlayerlist.layers.txt , goes in the Templates folder? Then you rename without the .txt, then use the utility and select import.... oh yueah baby, that works, thanks
0
Hank

rhankc 
 

Re: SU Layer Files

Postby TIG » Mon Dec 24, 2007 10:10 pm

rhankc wrote:I can see where the layer 0 is in the .skb, After writing the list in notepad do you just paste it in at the layer 0 end?

And thanks for the extra layer ext rb. I'll give it a shot.

The skb file is just a backup of the skp file. Writing or pasting stuff manually into the model's file without deeeeeeeep knowledge of what you are doing WILL mess up the model completely ! Don't be tempted to try it... unless you read and write binary code - it's NOT a simple text format...

Use my LayerExIm.rb script tool to import a list of layer names via the Ruby API interface - it knows how to make new layers/names and insert them into the data base properly. You can first export a list from an existing skp that has the layer names you need, or simply write a notepad.exe based text list of the layer names - one per line, normal charcters, no tabs... (start with it called MyLayers.txt BUT afterwards change the file's suffix to MyLayers.layers when you've done so the importer can see it... Then use my Layer Import tool, select the list and the layers will appear in the model. If that model file were put into the Templates folder and its name selected under Preferences as the default template then you'll always start with that set of layers in any new skp.
Purging the model will remove any layers that are 'empty'. If you want to get them back reimport the .layers list... You can have different 'layers' lists to suit different stages of your work, just as you can have different templates or styles for different types of modelling...
0
Last edited by TIG on Mon Dec 24, 2007 10:39 pm, edited 1 time in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: SU Layer Files

Postby rhankc » Mon Dec 24, 2007 10:19 pm

You can have different 'layers' lists to suit different stages of your work, justas you can have different templates or styles for different types of modelling


Now that's COOL!... Thanks for your help
0
Hank

rhankc 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Newbie Forum

Who is online

Users browsing this forum: No registered users and 4 guests

Visit our sponsors: