sketchucation logo sketchucation
    • Login
    1. Home
    2. yuyuwhy
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    Y
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: How to delete a model imported from *.dae file by ruby.

      @driven said:

      what are you actually doing?

      open new drawing...
      import dae, purge, export purged dae...

      2.times{Sketchup.send_action('editUndo;')}
      

      start again...
      maybe you don't even need the 2.times....

      yes, I just need to keep repeating the process: import a dae , purge, export purged dae, and deal with the next dae.

      thank you very much...
      👍

      posted in SketchUp Discussions
      Y
      yuyuwhy
    • How to delete a model imported from *.dae file by ruby.

      I have many *.dae files (about 10 thousand) that must be purged in SketchUp. So I write a plugin to deal with the *.dae files. How to delete a imported model in ruby?

      Here is my ruby scripts, but the code doesn't have any effects.

      model = Sketchup.active_model
      entities = model.active_entities
      entities.each { |singleEntity|
      entities.erase_entities singleEntity
      }

      posted in SketchUp Discussions sketchup
      Y
      yuyuwhy
    • 1 / 1