how can i use skp ruby api to import group with known name to skp?
What do you mean by import? From where?
You can use …
OR, (for more control) convert the group to a component, and save it to disk as an SKP file. Then …
Then place an instance of that component definition into an entities context …
1 Like
That is what i am doing ( the second option ) , but when using group.entities.add_instance i should set the transformation,
i want to do something like importing and set the model position = mouse position when click first time .
Then use Sketchup::Model#place_component()
instead of Sketchup::Entities#add_instance()
after you load the component definition.