• Login
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!
⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

How to add an entity to entities?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 103 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.
  • L Offline
    lbsswu
    last edited by 13 Jul 2012, 01:46

    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
    • T Offline
      thomthom
      last edited by 13 Jul 2012, 10:47

      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
      • L Offline
        lbsswu
        last edited by 14 Jul 2012, 06:17

        @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
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement