13 messages in com.googlegroups.sketchuprubyNone sketchup ruby geometry parsing| From | Sent On | Attachments |
|---|---|---|
| calmze | 09 Jun 2008 13:22 | |
| calmze | 09 Jun 2008 17:06 | |
| morisdov | 10 Jun 2008 06:10 | |
| calmze | 10 Jun 2008 06:56 | |
| morisdov | 10 Jun 2008 10:56 | |
| calmze | 10 Jun 2008 11:02 | |
| calmze | 10 Jun 2008 16:45 | |
| calmze | 10 Jun 2008 16:45 | |
| morisdov | 11 Jun 2008 03:05 | |
| calmze | 11 Jun 2008 07:27 | |
| Todd Burch - Katy, Texas | 15 Jun 2008 15:04 | |
| calmze | 16 Jun 2008 07:59 | |
| Todd Burch - Katy, Texas | 16 Jun 2008 18:06 |
| Subject: | None sketchup ruby geometry parsing![]() |
|---|---|
| From: | calmze (cal...@gmail.com) |
| Date: | 06/09/2008 01:22:55 PM |
| List: | com.googlegroups.sketchupruby |
Hi,
I'm working a project where I would like to get ruby drawing info using the Sketchup API and then translate that into a more reasonable data format (basically ADTs). So I would ideally have info about each major object (vaguely defined) such as a wall, a window, a ceiling, etc and where each component belongs and what is adjacent to each component. Then I would like to export this data to Java and optimize the amount of daylight in the room by moving the windows around. Then write the results back to sketchup to make a new drawing.
Has anyone done anything like this before? It seems like a lot of work to build the data structures, but I can do something like
for ent in Sketchup.active_model.active_entities and then check ent.is_a? Face (then check if it's opaque or not to see if it's a window)
to build the data structures and the relationships between them.
How should I go about exporting the data I gather? I could write it to a text file and then read the text file into Java. Or I could put it into a database. I haven't done any database programming, but ruby has a lot of database libraries.
Any suggestions?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
ideas" group.
To post to this group, send email to sket...@googlegroups.com
To unsubscribe from this group, send email to
sket...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sketchupruby?hl=en
-~----------~----~----~----~------~----~------~--~---




