Page 1 of 1

Viewing materials applied to Mirrored or Patterned objects?

Posted: Mon Jun 21, 2010 3:25 pm
by RobMitchell
Hey. It's thankfully been a while since I've needed to post in here, but one thing that's popped up a few times is the fact I can't see materials applied to objects that have been patterned or mirrored in SolidWorks, and I was wondering if there was a way to remedy this. It can make things difficult when trying to get an overview of a scene and seeing what still needs materials or not. Here's a screenshot of what I mean...

Image

As you can see, the grid (window frame) has had a green material applied to it which shows up fine. The two and a bit window frames directly to the right - which are seperate bodies but generated by using the linear pattern feature - have also had the same material applied but you can't see it. If I select the objects in the list the materials are applied and when I hit render they do show up (I believe). They're just not showing in SolidWorks... Is there any way to have them appear?

I'm using SolidWorks 2008 with the Maxwell 1.7 plugin on Windows XP 64-bit OS.

Any help would be great. Thanks.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Mon Jun 21, 2010 3:54 pm
by JDHill
This scenario seems to be working fine here for me on SW2009 & SW2010, but unfortunately I don't have SW2008 installed anymore. It looks like you don't have SW's RealView enabled, so that shouldn't be a problem; what happens if you use the 'Refresh Viewport Materials' button at the top of the plugin's Database Manager window?

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 12:16 pm
by RobMitchell
Hi JD, thanks for the reply. Unfortunately nothing changes when I click that button. I've since found that the materials show up on these objects if I select each individual face and apply the material to it... but that's not really an option here as it'd take forever.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 2:47 pm
by JDHill
Would you mind zipping and sending me the file (jeremy at nextlimit dot com), so that I can take a look. I have a theory about what might be happening, but it would be quickest to check it against the file.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 3:36 pm
by RobMitchell
The filesize for this particular piece is pretty big. Would it be OK to zip it up and upload it to a server instead?

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 3:54 pm
by JDHill
Yes, the simpler the file, the better. What I would need would be a file in precisely the state where things are misbehaving, so in this case that would a file where:

- you have a body repeated by linear pattern
- material has been assigned to each copy
- material display is incorrect

Now, as I am writing this, I see you edited your post -- I guess it's not easily reproducible with a new, simpler file? If this file is too big for email, you could use megaupload or rapidshare.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 4:25 pm
by RobMitchell
I tried to recreate this issue from scratch with a simpler model, but applying the materials to the bodies actually seemed to work fine that time (always the way). I've had this issue a few times but I can't seem to get it going from anything new at the moment so I thought I'd zip up the model in question.

It's not a huge file, about 35mb or so. Just sent a PM with the download link and some extra details.

Thanks for taking a look.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 4:40 pm
by JDHill
Thanks, I downloaded the file -- I'll take a look and see what's going on.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Tue Jun 22, 2010 8:21 pm
by JDHill
The basic problem is that while you are assigning your Maxwell materials at the body level, many of the faces of those bodies already have a SolidWorks material assigned. So, to see the body-level assignments, you need to remove the face-level assignments, since face-assignments override body- and feature-level assignments in SW.

The quickest way to get things sorted would be:

1. select the top node in the Feature Manager tree
2. edit its appearance
3. in the SW material editor, click Remove Appearance
4. then, click Remove All Appearances
5. go get a cup of coffee
6. accept the changes and rebuild the document

That will get rid of all your SW colors and prepare the model for the plugin to show you its materials without them being obscured by higher-precedence SW material assignments -- using the plugin's Refresh Viewport Materials command should now get you your desired result.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Wed Jun 23, 2010 2:14 pm
by RobMitchell
Thanks for the help, JD. Much appreciated. That all sounds great. Sadly I won't get a chance to test this until tomorrow now, but I will let you know how it goes when I do it.

Thanks again.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Thu Jun 24, 2010 11:49 am
by RobMitchell
So I had time to try this technique this morning and it hasn't worked. Maybe worth noting that when I clicked Remove Appearance then Remove All Appearances, it loaded very quickly. It sounded as if this step perhaps should've taken a while to fully remove everything? I hit rebuild anyway then refreshed the viewport materials through the plugin and it's stayed the same.

Just to be sure I'm not editing the wrong thing, it should be this node, right?

Image

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Thu Jun 24, 2010 2:50 pm
by JDHill
You're editing the right thing, but apparently SW's behavior is different in SW2008. Those steps work fine for me with this model in SW2009 and SW2010 -- when I click Remove All Appearances, SolidWorks takes about a minute to process the command, but afterward, all materials are indeed purged. However, the whole concept of materials was very much in flux in SW2008, so I cannot say whether you might need to use some other strategy in that version.

Basically, if you try those steps and it doesn't seem to work, just turn on the face selection filter and select some face -- confirm whether or not it still has a SW material assigned to it. Because if it does, then that material is going to take precedence over any body material you may have assigned. One way or another, the face material has to be removed, so try removing it directly from the face, then move on up to the face's parent and see if you can remove all of its face materials in one shot, and so on...apparently it's not working for you at the top part-level, but somewhere along the hierarchy it will.

Re: Viewing materials applied to Mirrored or Patterned objec

Posted: Thu Jun 24, 2010 3:17 pm
by RobMitchell
Good stuff. I know exactly what you mean in getting rid of it, so I'll plug away until I find the right configuration. Thanks again for the help, this should all help me avoid it in the future too. :)