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 likePoint3d
and 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.]
Advertisement