sketchucation logo sketchucation
    • Login
    1. Home
    2. yuyuwhy
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    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