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_instancerequires 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement