sketchucation logo sketchucation
    • Login
    1. Home
    2. yuyuwhy
    โ„น๏ธ 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

    yuyuwhy

    @yuyuwhy

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    yuyuwhy Unfollow Follow
    registered-users

    Latest posts made by yuyuwhy

    • 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