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

    Posts

    Recent Best Controversial
    • RE: Plugin select only one instance + count instances

      Hi TIG, so I have some more questions about the code.

      "select only one instance of the components in selection"
      The code runs for all the components in the model, right?
      How can I run it for only the ones I select?
      it would be good to have a code that only selects one instance of each component of my selection.

      "text-tag: number of instances"
      And the text tag which says how many instances there are, can I also use that separated from the copying, so that I can put a text-tag only on components that I select somewhere in my library or in the model?

      "order of components"
      And another thing, what is the order the components come in? I don't find that in the code, do I?

      Sorry for all the questions, I would really like to understand the code and work on it, but I have just started doing this.

      Thank you so much,

      Simon

      posted in Plugins
      S
      sb1305
    • RE: Plugin select only one instance + count instances

      Thank you so much. That helped a lot.

      posted in Plugins
      S
      sb1305
    • Plugin select only one instance + count instances

      Hi guys,

      I am new here and I was wondering if somebody could help me with my problem.
      I have used Sketchup for some years, but I have just started working with Ruby.

      So here is my problem:

      "select only one instance of each component"
      I made a big model with many different components, some of them are more than once in the model and now I want to select the components and copy them next to the model to create a kind of library of all the different components, but I only want to select one of each component and I don't want to select every single one by hand.
      Is there maybe an already existing plugin, that can select only one instance of each component? Or can anyone help me to write that in ruby?

      "text-tag: number of instances"
      And after I copied the elements I would like to put a text tag next to them saying how many instances there are in total, of course minus the copy I just created and I don't want to do that by hand as well. So I want the entity info "solid component(65 in model)" for example as a text-tag. Is there maybe an existing plugin or can anyone help me to write that in ruby?
      And it would also be great to do that by selecting all, so it will create a text tag with the number for every single element in the selection.

      I hope you can help me with that.
      Thank you very much!

      Simon

      posted in Plugins
      S
      sb1305
    • 1 / 1