[Plugin] exportlayers2daes

[Plugin] exportlayers2daes

Postby TIG » Sun Oct 10, 2010 4:55 pm

(c) TIG 2010
Permission to use, copy, modify, and distribute this software for
any purpose and without fee is hereby granted, provided that the above
copyright notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
___________________________________________________________________________

exportlayers2daes.rb >>> ../Plugins/ folder
___________________________________________________________________________
Purpose:
It exports everything in the Model's entities on each 'Layer' as a separate
Collada '.dae' file.
___________________________________________________________________________
Usage:
To run the tool type 'exportlayers2daes' in the Ruby Console.
If the Model SKP is new and has not yet been saved you will get an error.
Layers are NOT exported if they are switched 'off'.
Layers are NOT exported if they do not contain 'entities'.
All eligible Layers are processed in turn.
The DAE file path in displayed in the Console.
The DAE files are exported into the Model's folder.
They are named after the Layer.
'Layer0.dae'
'Furniture.dae'
'Site.dae'
The 'file_name' is based on the 'layer_name' but with any unacceptable
characters removed [it only uses: A-Za-z0-9_]; if this would duplicate a
name then an incrementing numerical suffix is added - e.g. 'Site_001.dae'.
On completion the total number of Layers exported as DAEs is reported.
Note that you can change the DAE export options in the rb_file itself -
except for 'selectionset_only' which must always be set as 'true'.
___________________________________________________________________________
Donations:
by PayPal to info @ revitrev.org
___________________________________________________________________________
Version:
1.0 20101010 First release.
___________________________________________________________________________
exportlayers2daes.rb
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] exportlayers2daes

Postby Khai » Sun Oct 10, 2010 5:11 pm

thanks TIG :)
0

Khai 
 

Re: [Plugin] exportlayers2daes

Postby pilou » Sun Oct 10, 2010 6:03 pm

I suppose there is the same problem of accents for French Windows système ? ;)
So If I use a path without accent that will be ok :enlight:

Ps I have now more 300 simple Plugs without count the folders :roll:
You will kill my old 1 Giga memory :mrgreen:

Edit that works! :fro: :thumb:
0
Last edited by pilou on Sun Oct 10, 2010 6:12 pm, edited 1 time in total.
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] exportlayers2daes

Postby TIG » Sun Oct 10, 2010 6:11 pm

Pilou - correct - avoid accents etc in folder_paths... :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: AntBM, Bing [Bot], Debora Macedo, Google Bot, ljus, ngoctung0211, userid7 and 11 guests

Visit our sponsors: