How to import group to skp using ruby?

import
group

#1

how can i use skp ruby api to import group with known name to skp?


#2

What do you mean by import? From where?


#3

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 …


#4

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 .


#5

Then use Sketchup::Model#place_component() instead of Sketchup::Entities#add_instance() after you load the component definition.