We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › SketchUP - Rhino - AutoCAD - PovRAY Exporter
Page Index Toggle Pages: 1
SketchUP - Rhino - AutoCAD - PovRAY Exporter (Read 5204 times)
SketchUP - Rhino - AutoCAD - PovRAY Exporter
Aug 25th, 2008, 2:06pm
 
I've started a library for geometry export.

http://labelle.spacekit.ca/supercad/

Currently supported:

(o) (AutoCAD through AutoLISP '*.lsp')
(o) (PovRAY '*.pov') with a default scene
(o) (Rhino through RhinoScript '*.rvb')
(o) (SketchUP through Ruby '*.rb')

The library is similar to rawDXF usage. All your geometries will be broken in simple triangle and lines sets. I'm now looking to improve the export with splines and polygons export.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #1 - Aug 25th, 2008, 4:43pm
 
wonderful! what a helpful addition, thanks for posting.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #2 - Aug 27th, 2008, 1:58am
 
Wow, this seems way cool to me. I'm just trying it out with sketchup, and I'm wondering if I'm doin' it right.

Basically, I get the library installed, and run the demo, hit "s" for sketchup, and it spits out a .rb ruby file. I assumed that I should launch sketchup and copy-paste the contents of the .rb file into the ruby console, but... that didn't work.

OH, wait! yeah, it did. I don't know what went wrong, but I somehow missed the geometry.  Anyway, 500 objects crashed sketchup when I tried pasting 2.5m of data into the ruby console, but I changed the number of objects down from 500 and it worked great. Smiley Nice job, I like the scale parameter, too.

-steve
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #3 - Aug 29th, 2008, 4:53pm
 
I'm glad that you figured out how to use it. I'm not very familiar with SketchUP myself. You could also import your script in your "SketchUp/Plugins" folder and it will run at startUP. It might be more reliable than the console. I'm planning to add something in the header to integrate the exported script in the sketchUP menus.

I haven't done a view exporter yet, for now, it doesn't match the processing view. It's the same in for all formats.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #4 - Sep 14th, 2008, 3:34pm
 
You could now export also to MAYA (*.mel) files.
I've uploaded a small demo video.

http://labelle.spacekit.ca/supercad/
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #5 - Oct 29th, 2008, 8:04pm
 
hi

REALLY super excited about this library - but I'm getting a weird error msg : 'You need to use "Import Library" to add superCAD.null to your sketch'...

I have already done this but I am still getting this msg...

help? thanks!
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #6 - Oct 29th, 2008, 9:18pm
 
Mmm... Let's see...

Could you send a code as an example, the version of Processing are you using? Os?
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #7 - Nov 3rd, 2008, 9:41am
 
Hi,
thanks a lot for this great lib. It promises to give extremely clean models in Rhino/Sketchup etc.

I get a similar Error(like oompa_l) using Processing 154 from Eclipse.
I've not yet figured out, if it's a problem with your lib or if i haven't referenced the lib correctly in eclipse. But it should be fine when it appears with the correct path in the project folder under referenced libraries, or?

Any help is extremely appreciated.
The error message I get looks like this:


java.lang.NoSuchMethodException: superCAD.Rhino.<init>()

at java.lang.Class.getConstructor0(Class.java:2678)

at java.lang.Class.getConstructor(Class.java:1629)

at processing.core.PApplet.makeGraphics(PApplet.java:1131)

at processing.core.PApplet.createGraphics(PApplet.java:1057)

at processing.core.PApplet.beginRaw(PApplet.java:6664)

at PyramidWall.export(PyramidWall.java:213)

at PyramidWall.keyPressed(PyramidWall.java:268)

at processing.core.PApplet.handleKeyEvent(PApplet.java:1719)

at processing.core.PApplet.dequeueKeyEvents(PApplet.java:1702)

at processing.core.PApplet.handleDraw(PApplet.java:1407)

at processing.core.PApplet.run(PApplet.java:1300)

at java.lang.Thread.run(Thread.java:613)
Exception in thread "Animation Thread" java.lang.RuntimeException: superCAD.Rhino needs to be updated for the current release of Processing.

at processing.core.PApplet.makeGraphics(PApplet.java:1184)

at processing.core.PApplet.createGraphics(PApplet.java:1057)

at processing.core.PApplet.beginRaw(PApplet.java:6664)

at PyramidWall.export(PyramidWall.java:213)

at PyramidWall.keyPressed(PyramidWall.java:268)

at processing.core.PApplet.handleKeyEvent(PApplet.java:1719)

at processing.core.PApplet.dequeueKeyEvents(PApplet.java:1702)

at processing.core.PApplet.handleDraw(PApplet.java:1407)

at processing.core.PApplet.run(PApplet.java:1300)

at java.lang.Thread.run(Thread.java:613)
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #8 - Nov 3rd, 2008, 2:08pm
 
As stated in revisions.txt (the "please read me" next to the download), the library has to be updated for more recent releases of Processing.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #9 - Nov 3rd, 2008, 3:05pm
 
Thanks!

I didn't had time to update this library yet. I should first update mySelf to the current version of Processing, i'm still on v135.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #10 - Jan 15th, 2009, 12:17am
 
does anyone know of any other libraries that could do what this one does?

how complicated is it to update this library for use with the current processing - I wonder if I could help...

thanks
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #11 - Jan 16th, 2009, 12:32pm
 
http://labelle.spacekit.ca/supercad/

Here's  an Updated version of the superCAD.

-It's working with Processing v1.0.
-ArchiCAD exporter have been added (not tested yet)
-Obj File exporter have been added (everything in your scene is exported as one giant object containning all the faces)

Remember, raw() is like Draw() but without the 'D'... Wink

Everything you _raw() inside your Draw() method is exported as a set of broken lines and triangles. The geometrical hierarchy is not preserved. For this I started to work on a geometric structure. It should be ready in the next weeks.
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #12 - Feb 4th, 2010, 6:23pm
 
Could someone describe the steps to import to Rhino.  I run the examples and press 'r' and the message below pops up, but I don't know what to do from here to open it in Rhino.

Can anyone help me?  


[SuperCAD]:
[Exporter] [EXT] [KEY]
AutoLISP -- lsp -- a
PovRAY   -- pov -- p
Rhino    -- rvb -- r
SketchUP -- rb  -- s
Maya     -- mel -- m
ObjFile  -- obj -- o
ArchiCAD -- gdl -- c
[SuperCAD]: </Users/sjs/Documents/Processing/libraries/superCAD/superCAD_Example/superCADex2
/myCADFile.lsp> (open)
[SuperCAD]: AutoLISP (Done)
Re: SketchUP - Rhino - AutoCAD - PovRAY Exporter
Reply #13 - Feb 4th, 2010, 10:43pm
 
You need to choose format:
Replace SuperCAD.recordNextFrame(); with
SuperCAD.recordNextFrame("Rhino");

or SuperCAD.keyCheck(); if you want to use keys (like 'r')

One file is created in your sketchfolder. In your example, you have one .lsp file created (which is an autolisp file). I suppose that you want to export through rhinoscript. You'll have a .rvb file. You then load this file in Monkey (the rhinoscript editor). You may generate OBJ file, I think Rhino support it.

Page Index Toggle Pages: 1