30 day free trial of Pro/E!

SmackHACK! Custom SolidWorks Scenes without PhotoWorks

by Josh on October 21, 2008 · View Comments

solidworks custom photoworks scenesWhat do ya say we cause a little trouble? Last week I made some extremely riveting points about setting up your SolidWorks interface for a better workflow. I’m sure it cause mild shaking and maybe a distant shriek of terror.

However, one thing that frustrates me to the point of making a really disturbing face, while people cringe in disgust around me, is the inability to create your very own custom scene without using PhotoWorks. Lame. Head-butt.

Do you use RealView?
What’s cool about SolidWorks 2008 and 2009 is using RealView when you’re modeling. A nice background scene makes the experience all the more special. Unfortunately, you typically need the PhotoWorks Scene Editor to add Scenes with different backgrounds. (PhotoWorks is a SolidWorks add-on available in Professional and Premium versions.)

Well, it just so happens, that you don’t need PhotoWorks at all, and it’s extremely easy to create your own Scenes with your own backgrounds. Here’s all the files and the steps you need to make it happen.


The Light Goes Nn
One day, in the middle of my 3D modeling angst, trying to come to terms with not having PhotoWorks and being limited to only 27 other scenes in SolidWorks, I did a search for ‘Scenes’ in C:\Program Files\SolidWorks Corp. I found the Scenes folder and this is where the adventure begins.

Pick your favorite Scene
I like the Light Card Scene, so I’m going to start with that. Here’s the steps:

First, download this file (orangeburst.png) and put it in C:\Program Files\SolidWorks Corp\SolidWorks\data\Images\textures\background\

Now…

  1. Go to C:\Program Files\SolidWorks Corp\SolidWorks\data\graphics\Scenes\02 studio scenes
  2. Copy (Ctrl-C) 66 light cards.p2s
  3. Go up a level and create a new folder named 04 custom scenes
  4. Paste the 66 light cards.p2s file into the new folder
  5. Rename it to 00 orangeburst.p2s
  6. Open it with Notepad (Right-click, Open, Select program form list…)
  7. On line 24, replace…
    image “Images\textures\background\rooftopsunrise.png”
    with…
    image “Images\textures\background\orangeburst.png”
  8. Select File, Save (Ctrl-S)

Ok, that is that, but to get the Scene to show up in the Scene Dropdown List in SolidWorks, you have to make a really quick mod to another file.

  1. Open C:\Program Files\SolidWorks Corp\SolidWorks\lang\english\graphics\mapping\scenes.dat
  2. Add these lines at the very bottom
    Custom Scenes, \Scenes\04 custom scenes
    Orange Burst, \Scenes\04 custom scenes\00 orangeburst.p2s
  3. Select File, Save (Ctrl-S)

All the files you need
Here are all the files you need and where to put them.
orangeburst.png (goes in …\SolidWorks\data\Images\textures\background)
00 orangeburst.p2s (goes in …\SolidWorks\data\graphics\Scenes\04 custom scenes)
scenes.dat (goes in …\SolidWorks\lang\english\graphics\mapping)
PhotoWorks Scene Editor – (shots of PhotoWorks Scene Editor to figure out more settings.)

Your background is ROCKIN’
Quick and painless. Now that you know how to do it without PhotoWorks, what will you come up with?

{ 8 comments }

SolidWorksHackPolice October 21, 2008 at 2:22 pm

We know where you live, Mings, and we're coming to get you and your little dog too!

Charles Culp October 21, 2008 at 2:51 pm

I have to assume not. Mark B. hinted at how to do this a year ago on the SW forums, before SW2008 actually came out. Thanks to Josh, though, for actually detailing it out!

Josh M October 21, 2008 at 3:27 pm

yeah, it's nothing against the License agreement for sure. They had to go and make it easy though huh? It would be nice if the scene editor was included since even basic SolidWorks uses scenes now.

Charles Culp October 21, 2008 at 3:46 pm

What I would *really* like is to be able to “hack” the lighting effects for materials. Regular solidworks can use “appearances” now, but you have to have PhotoWorks to edit those appearances. So I'm stuck with castings that look like they are high-gloss plated instead of matte…

A. Leibovitz October 22, 2008 at 11:00 am

Great post, excellent Tips!

Josh M October 22, 2008 at 11:41 am

so true Charles. I've been working on tryingto hack that as well. I'll post it, if I get it to work.

Anonymous October 24, 2008 at 8:33 am

Hi
I am looking for a freelancer for Solidworks.
contact me at : solidcad100@yahoo.com
Thanks
Jay

solidcad100 October 24, 2008 at 3:33 am

Hi
I am looking for a freelancer for Solidworks.
contact me at : solidcad100@yahoo.com
Thanks
Jay

Comments on this entry are closed.

{ 2 trackbacks }

blog comments powered by Disqus