Author Topic: Sketchup/Ruby  (Read 22157 times)

0 Members and 1 Guest are viewing this topic.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Sketchup/Ruby
« on: March 03, 2009, 08:54:07 am »
Ok here is the question.

i posted here
http://www.photonlexicon.com/forums/showthread.php?t=6053
about a path to free 3d laser frames.

With DrLava's new software i thought i would bring it up again but in a slightly different light.

Attached to the above thread is a free plugin that exports sketchup drawings to DXF.

The plugin does not do color, and could use some tweaking. AS IS it does handle basic shapes well and i have used it myself. I just believe that with a base like the provided plugin, anyone with ruby experience could make some improvements.

I know that James knows allot about DXF so he may be able to answer any questions regarding the dxf file structure.

Anyone... anyone?


Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Sketchup/Ruby
« Reply #1 on: March 04, 2009, 10:55:00 am »
Sounds like a good reason for you to learn ruby.  :)

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Sketchup/Ruby
« Reply #2 on: March 04, 2009, 11:27:11 am »
maybe.. i have so much other shit to worry about and im not a good programmer..


Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Sketchup/Ruby
« Reply #3 on: March 04, 2009, 07:07:05 pm »
I looked at the ruby script and fixed it so that it would always render a white line.

The only way I can think of to get DXF color into it is if-and-only-if there is some notion of DXF color in SketchUp that we can access with the same level of ruby objects.

If SketchUp does all of its colors in RGB, we're done. DXF uses one-any-only-one palette.

Wait a minute......

If we could find the RGB values in the ruby objects that are avaialable to us, then we could put FAKE DXF codes in the output that only LaserBoy would know how to read! We could get 24-bit color that way too!   :o ;D

It might not be *real* DXF but it would *really* work!

James.  :)
« Last Edit: March 04, 2009, 07:13:18 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
« Last Edit: March 04, 2009, 11:45:30 pm by BlinkenLights »

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal