sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    How to add an entity to entities?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 68 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