sketchucation logo sketchucation
    • Login
    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

    How to add an entity to entities?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 102 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • lbsswuL Offline
      lbsswu
      last edited by

      Is there a method to add an entity object to entities object? I searched the forum yesterday but did not find any way...

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        You're aware of the API documentation, right?
        https://developers.google.com/sketchup/docs/classes

        The Entities class has many method to add entites - depending what you want to add:
        https://developers.google.com/sketchup/docs/ourdoc/entities

        You're not talking about adding an existing entity to a different Entities collection?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • lbsswuL Offline
          lbsswu
          last edited by

          @thomthom said:

          You're aware of the API documentation, right?
          https://developers.google.com/sketchup/docs/classes

          The Entities class has many method to add entites - depending what you want to add:
          https://developers.google.com/sketchup/docs/ourdoc/entities

          You're not talking about adding an existing entity to a different Entities collection?

          I am sorry I made a mistake about the concepts of Sketchup::Entity and Sketchup::ComponentInstance. I have two car models, and I should use entities.add_instance to add a car.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement