How to add an entity to entities?
-
Is there a method to add an entity object to entities object? I searched the forum yesterday but did not find any way...
-
You're aware of the API documentation, right?
https://developers.google.com/sketchup/docs/classesThe
Entities
class has many method to add entites - depending what you want to add:
https://developers.google.com/sketchup/docs/ourdoc/entitiesYou're not talking about adding an existing entity to a different
Entities
collection? -
@thomthom said:
You're aware of the API documentation, right?
https://developers.google.com/sketchup/docs/classesThe
Entities
class has many method to add entites - depending what you want to add:
https://developers.google.com/sketchup/docs/ourdoc/entitiesYou'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.
Advertisement