sketchucation logo sketchucation
    • Login
    1. Home
    2. ymagrini
    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!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    Y
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 1

    ymagrini

    @ymagrini

    10
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    ymagrini Unfollow Follow
    registered-users

    Latest posts made by ymagrini

    • Access specifies entity

      Hi, again.
      I need your help.

      I perform an automatic ruby code for change colors of group, but I can't select the specified entity.

      My code start from this:
      Sketchup.active_model.active_entities.grep(Sketchup::Group).each do |group|
      [:........]

      the poblem is that when open the sketchup project, active_entities is:

      Sketchup.active_model.active_entities
      #Sketchup::Entities:0x00000008fbfd08

      in this mode, groups thus are not found.

      but, when perform double-click into specified group, then acitve_entities is:
      Sketchup.active_model.active_entities
      #Sketchup::Entities:0x0000000b5deef8

      (note that is another id)

      how can't find another entity or set active_entity ??

      if do a loop or i access by index, then get another components......

      Sketchup.active_model.entities[0]
      #Sketchup::ComponentInstance:0x00000008fbfc90

      Sketchup.active_model.entities[10]
      #Sketchup::Edge:0x00000008fbf948

      .....

      Thanks, very much

      Yamil.

      posted in Developers' Forum
      Y
      ymagrini
    • RE: Change color entity group

      Excelente!
      Thanks very much!

      posted in Developers' Forum
      Y
      ymagrini
    • Change color entity group

      Hi!
      I need your help. I'am beginner and need change color to entity group by Ruby.
      I Attach the entity that I need change color.

      How can find this object and then change color?
      Thanks.
      Best regards, from Argentina!


      entity

      posted in Developers' Forum
      Y
      ymagrini