Auto create an given item at a calculated location? See insi
-
Hi, all! I'm a student currently writing a program that could determine optimal location for an item. The question I had is that is it possible to automatically create an given item at a calculated location, for say, the central point inside a cube. More precisely might be how to obtain the number of items, ex. walls, between two given points, and attributes associated with them.
Thanks for helping!
BING
-
I suggest you read the API... https://developers.google.com/sketchup/docs/
Theentities.add_...()methods do want you want...
You'll also need to understandTransformations[simple will do!] used to locate some things like 'instances'... and how to create objects likePoint3dand maybeVector3d...
There many freely available snippets and full-scripts, that already do what you seek, so there's no need to reinvent the wheel from scratch - just understand what you are doing...
I might move this into the Developers' Forum...
[EDIT: done.]
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