Help inserting a skp into a model.
-
The only method I have found to import a skp into my model is
model.import "my_file_name.skp"
. However, this method places the import on the tip of my pointer, not in the model. How do I import a skp, to a specific point in the model independently of a pointing device?If I can import the skp as a definition, or instance to the model, then I could do something like
definition.insertion_point=Geom::Point3d.new(x,y,z)
. But I have not figured out how to do that. Any ideas? -
-
Entites.add_instance
requires the instance to exist.
What you want to use ismodel.definitions.load
http://code.google.com/intl/no/apis/sketchup/docs/ourdoc/definitionlist.html#loadThen you can use
model.active_entities.add_instance
-
Yes and the code example under Entities.add_instancehas all that.
-
Gotcha - didn't notice that.
-
Thanks guys.
Advertisement