Jim
unread,Jul 9, 2008, 9:00:54 PM7/9/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google SketchUp Help - Ruby API
That is excellent, Roger! Thanks.
I've had a similar idea for some time, but haven't done it. I imagine
a 3d visualization of the object tree created using the API and
displayed right in SketchUp.
Anyway, here's a little more information you probably already know.
The following are actually in the Geom
namespace:
Geom.constants => ["BoundingBox", "UTM", "PolygonMesh", "LatLong",
"Point3d", "Transformation", "Vector3d"]
For example, you can't create a Point3d using Sketchup::Point3d.new,
you need to use Geom::Point3d.new
The ancestors of objects in sketchup (as you probably know.):
Sketchup::Edge.ancestors => [Sketchup::Edge, Sketchup::Drawingelement,
Sketchup::Entity, Object, Kernel]
UI is another namesapce:
UI.constants => ["WebDialog", "Command", "Toolbar"]
I think all the Observers are also in the Sketchup namespace.
Are there others?
Anyway, I always thought it would be cool to generate a 3d
visualization of the class hierarchy.
Thanks again for your work.