sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    [Plugin] exportlayers2daes

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 3.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      (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 PayPalButton ___________________________________________________________________________
      Version:
      1.0 20101010 First release.


      exportlayers2daes.rb

      TIG

      1 Reply Last reply Reply Quote 0
      • K Offline
        Khai
        last edited by

        thanks TIG πŸ˜„

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          Pilou - correct - avoid accents etc in folder_paths... πŸ˜’

          TIG

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            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 β˜€

            Ps I have now more 300 simple Plugs without count the folders πŸ˜’
            You will kill my old 1 Giga memory πŸ’š

            Edit that works! 😎 πŸ‘

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement