How do you create actor color views and then import them into other files?

I have done this in the past by going to the workshops tab then clicking on Views. When the Workshops dialog box opens, I click the custom button and then click the selected properties which I have color and type selected in the properties pane, then I click create. The view is now created (or so I thought). Then I export the view and save it on my computer.

Once I open another model that contains the same assy I created the color view from, I try to import the color view that I just created and it brings it in without the colors!!! It driving me nuts. Please help!

SolidworksComposer
Answers 8
AT
AT 2015-06-18 Best Answer

Hi Jacqueline,

As long as the SMG originally used to create the view was done with merge files with one actor per part enabled, and the new SMG was created with the same option enabled and the file names have not changed for the solidworks parts, this should work.

I just tested it out and was able to transfer the color into the view, export it, then import it into a new SMG and have it retain the color change.

I tested it with a SMG with the merge option unchecked and it did not work.

EH
EH 2015-06-18

You can select one or more views from the view manager, in this case the custom views.  From there right click and select to save the views to an smgView file.  This is an XML file that contains the definition of the saved views.  This saved file can now be imported into any SMG file you like.

The key as Alex has mentioned is that the colors will be saved with the names of the components that the color applies to.  You'll want to perform search and replace of the original component name with the new component name to allow for use with different assemblies.  You can use just any text editor, but I would recommend one that supports XML formatting.  I use Microsoft Visual Studio, but you could use such tools as Notepad++ or others.

-Earl

JC
JC 2015-06-18

Thank you Alex but I can not seem to find what you are talking about when importing a view? I see that option when I go to open a file or merge a file into another but now when I right click on the views pane and choose import views I get this screen:

comment imagecomment image
AT
AT 2015-06-18

That option is only available when the SMG is originally created, not during the view import.

So you may need to re-create the SMG again to match the setting.

JC
JC 2015-06-18

Thank you Earl. I have been saving them in a smgView file and my actors do have the same names but it still isn't working when I import the smgView into another file. This used to work for me no problem. Not sure why it wont now and like I mentioned above to Alex, I don't have an option to enable merge files with one actor per part when importing a view, only assy's.

JC
JC 2015-06-18

Ok I see. Is there a way to tell if it was created like that in the first place? I am asking because I didn't have issues with this in the past and I have not changed any of my settings since I started using this program.

AT
AT 2015-06-18

Yes, open the smg and go to file>properties>document properties>update, and see what is selected there.

JC
JC 2015-06-18

Thank you!!