Hi,
Is there an offline version of the sketchup Ruby API ?
I am not constantly connected to the internet to be able to browse the documentation.
Regards
Hi,
Is there an offline version of the sketchup Ruby API ?
I am not constantly connected to the internet to be able to browse the documentation.
Regards
Thanks for all the suggestions, pointers and tips.
I am making progress exporting both raw entities and entities within components instances (including the transformation)
It's not complete yet (some instance are place wrongly) but I should be able to figure the rest out (might be group handling etc)
Thank you once again.
@tig said:
ents=Sketchup.active_model.entities
- then take
box1=ents[-1].all_connected
- to list all edges/faces connected to the last entity in the model... then
box2=[] ents.each{|e| if not e.all_connected.include?(box1[0]) box2=e.all_connected break end }
I tried but it get's really slow with very large scene.
I am after a more direct way to find out
(1) How many objects are in the model
(2) For each object, what are the faces, edges, vertex
I am doing this to write out the information as a text output so I can render it in Renderman.
Is there an easier approach for folks writing exporter for SketchUp, I had a look at some of the example exporter and they don't look straight forward.
Hi,
I tried looking for the information at the FAQ.
I am writing a C++ based Ruby Extension for use in Sketchup.
Where can I find information regarding the C++ compiler version and Ruby version required for easier integration with Sketchup?
Should I build my own version of Ruby ? Should I avoid developing in 64bit windows ?
I am targeting Sketchup version 8.X
Regards
@dan rathbun said:
Well then unless the "boxes" have been grouped or made into a component... then they are nothing but primitives that happen to share vertices.
Hi Dan,
Thanks for the advisory.
As you can see, I am new to Sketchup's workflow and best practices.
If I understand correctly, it is reasonable to expect some group/component from proper Sketchup usage.
Regards
@dan rathbun said:
Did You group the boxes, and then give each group a name ??
No, I didn't
I am working on an exporter and need to deal with scenes as is rather than require the plugin user to change their work flow.
I am kind of re-building a scene representation from a polygon soup.
Hi,
I have a scene where I have created two boxes.
--The following is done via Ruby--
When I list the entities in the scene, I get all the individual faces.
Is there a property on those entities/faces (or a method/algorithm) to find out which object (box) the face/entity belongs to?
Regards