How two change parent!

It's very annoying when trying to set up a hierarchical table and solidworks not letting you change the parent after it has been set once. I see no reason for this behavior.

I can delete the original config but it deletes the design table config which means I have to paste it in. It's a waste of time process that should be unnecessary. Any macros that can remedy this?

SolidworksConfigurations design Tables
Answers 21
SM
SM 2011-07-16 Best Answer

I am confused. 

If you delete a config, why wouldn't you want to remove it from the design table?

Shouldn't it?  I haven't had an issue when editing a high archal DT not

working or responding.  What else is it not doing or doing that it shouldn't?

SF
SF 2011-07-16

um, I don't want to delete a config. I just want to change it's parent. Solidworks won't let you change the parent(directly anyways).

Very simple: Create a config. Set the $Parent to another config in the DT. Exit/save changes/whatever. Now go back and try to change the $Parent value. Solidworks complains that you can't. It's very annoying because the only way to change it IS to delete the config and start over.

SF
SF 2011-07-16

Scott,

Good luck with that, let us know how it goes.

SM
SM 2011-07-16

Ok, I get that.  I have done what you are talking about several times.  At work we

have seals that have configs and they are sub assemblies of the top level they are used

in.  If I change the seal config to use a different one, they update fine.  Rare occasions

they require a control Q but that is it.

What version are you running again?

SF
SF 2011-07-16

11.4.

This is not assemblies though. This is part design tables. Not sure if it has issues in assemblies or not.

Solidworks pops up with an error msg about doing it.

Attached is a simple test project. It has 3 configs. Other is a parent of Another. go in and try to change the parent to Default and solidworks will complain. The only way to change it is to delete the config and start over. Very time consuming and annoying.

I don't know why these seems so complicated. Maybe I'm not being clear but it seems like what I'm explaining should be rather obvious ;/ In any case the error msg says it all.

I'm sure someone with enough intelligence can create a simple macro or some other workaround. Possibly there is some reason why solidworks makes this difficult to do but it shouldn't prevent it completely. (you also end up losing all your work in a DT if you try and change the parent)

comment imagecomment image
SF
SF 2011-07-16

Do you have a problem with me? Seems like you reply to my messages with these little snide comments that have no useful information.

SM
SM 2011-07-17

I donwloaded your file and tried what you said and I did not get any errors.

I double clicked each one back and forth and it kept changing the model

without issue.

I am running 64 bit SW2011 SP 3.0

SF
SF 2011-07-17

Arch,

Actually, I replied to Scott, hence "Scott" at the beginning of my comment.

Useful is in the eye of the user perhaps.

Perhaps you can explain to us of lower intelect (meaning me...) why you want to use a Derived Config instead of a Config. Using a Config would likely solve your issue. (But of course, someone with a MENSA background such as yours obviously already knows this...) (See, now I am being Snide, I'll go slow so you can keep up...)

I'll be the first one to tell you Solidworks has it's short comings, if you don't like it, don't us it. If you don't understand it, then learn.

We are still on a primitive version of MS Office here, so I cannot open your Design Table. Below is a re-created part with Configs, once the first is established and the DT created, everything appears to work as one would imigine the intent was.

I've eliminated the EQs as they serve no purpose here, you can add them back in if that's what you want.

X = ID Y = OD.

000 Parent

Another

Other

(SW has an annoying habit of grouping things Alpha-Numerically, no?  6,61,62,63,64,65,66,67,68,69...)

DT Driven Configs start @ 1 and go through 63 (just cuz that's where I stopped dragging the lines at...)

  <--- UR orignal Test Part

  <--- Working Configs driven by a Design Table.

The Zip file is a SW2011 format, this shouldn't be a problem for you. If it is, just let me know.

comment imagecomment imagecomment imagecomment image
SF
SF 2011-07-17

I'm sorry but if you think you can give backhanded comments/help or whatever you call it and actually expect me to read your posts your dead wrong. You're just wasting your breath. I don't know who you are and I don't believe I've ever even replied to anything by you before and have very few comments on this forum. Maybe your just the type of person that has nothing better to do than instigate things.

In any case you if you have any problem with me I would think the most mature thing would just be to STFU and not respond to any of my posts. But then again maybe you have a personality distorder and cannot help it. If that is the case then ignore what I have just said.

SF
SF 2011-07-17

Thats strange ;/

You say you are doubling clicking the back and forth BUT did you change the parent in the excel file?

It's not about changing the configuration using "show configuration".

1. Right click on the design table and select "Edit Table in new window". It should open up Excel. (if you have an older version of Excel it might not work)

2. In the $Parent column change Other to Default.

3. Exit Excel.

Maybe I wasn't clear but all the work I'm talking about is happening in excel and nothing in solidworks itself excep the error msg.

SM
SM 2011-07-17

Archival,

I did open up the DT, but just viewed it. Did not change anything.

Ok, I am understanding what you are saying, but what it sounds

like is you are trying to rename an exisint config to a name that already

exists in the DT.  I can see why that would error.

Why do you need to do this if what I described is indeed what you are trying to do.

SF
SF 2011-07-17

Well, in some sense it maybe renaming internally.

Let me give another example I just ended up with:

I have several hierarchical configs:

PartA

   PartA1

   PartA2

PartB

   PartB1

   PartB2

(each part line above represents a row in excel)

In SW's I get that hierarchy in the configs. Everything works great. I can have similar parts that are very similar but possibly with slight different features all in the same SW part file. It works well.

NOW!!

I want to add a part that contains all those parts for performance reasons. I want

PartParent

  PartA

     PartA1

     PartA2

  PartB

     PartB1

     PartB2

Where Part is the part of all the sub parts. I can configure PartParenteasily in excel and it will effect all derived parts. Clear as mud so far?

But when I try to make the $Parent of PartA equal to PartParentI get the error described. I have to delete all the parts and copy them back.

The performance reason for PartParent is that I can enable and disable fillets, chamfers, and other non-structural features easily and it will effect all the parts rather than having to duplicate a bunch of useless data.

But of course I can't add a parent. I can add a child very easily but not the reverse. This is annoying because when one does need to do this it is time consuming and error prone and there is no technical reason why it is difficult or impossible.

If you want to try it just go into that test part and add a parent config and setting "Default"'s $parent to the new config. (you must insert the new parent config above it at the very least)

I can understand why it is a bad idea to insert(or rather change) a parent after the fact beause assemblies using the part will be screwed up. BUT in my case I am building the part and it is not used in any assemblies yet but SW's makes it extremely difficult to easily change parents.

Since I don't use external excel files I can easily lose all the part configs or any changes I made.

Strangely enough it's ok to rename a config and SW excepts it. This is not much different as I could rename all the configs temporarily. Again, it's time consuming and unnecessary and SW's is not consistent with the two similar methods. (of course there is possibly some other reason why SW's make it's so a hard to change the parent(yet so easy to change the config name which is just as disasterous))

SM
SM 2011-07-17

You did a real nice job of outlining this.

Yes you are correct that renaming configs in the DT works out fine and usually is not

an issue.

What you are describing regarding the fillets and chamfers I have heard refered to enveloping.

For the exact reason you described.

May be that is something you might want to consider.

http://help.solidworks.com/2011/English/SolidWorks/sldworks/LegacyHelp/Sldworks/Assem_1/HIDD_Apply_Envelope.htm

I have not done configs to the depths you have 2-3 tier in.  I have done 1 tier in and never had this

issue.  But maybe you are revealing something in the inefficiency of the network of configs to DT's.

SF
SF 2011-07-18

I find it much more organized to configure parts hierarchically. I can actually include rather different parts in the same part file by doing so and suppressing and unsuppressing the differing features. This makes it easier than having many similar part files.

For example, if you were going to create a bolt, screw, and nail you could do so in the same part file.

Hardware -

  Bolts

     Bolt1

     ....

  Screws

    Screw1

     ....

  Nails

     Nail1

     ....

Then Hardware is the top parent and you can control all the visual feature(non-essential fillets, chamfers, cuts, features, etc) of all the subconfigs by controlling it and not having to mess with any of the other configs.

Also you can put the common bolt data in the Bolts config and it will effect all it's children. You do not have to duplicate data this way as all the common data goes in the parent.

This may to some degree result in file bloat as each parent is actually a configuration itself. You could also include more children such as

Nail1

   ANSI

   Metric

   .....

Or order it any other way such as having ANSI Hardware and Metric Hardware for your two top level parents.

In any case it makes it easier to with slightly different parts(at least im my opinion).

Of course SW's doesn't make it as easy as it could be such as changing the parent(suppose you want to reorder the tree and put Ansi above nails so you have something like

ANSI

  Nails

     Nail1 ANSI

Metric

   Nails

     Nail1 Metric

instead of

Nails

   ANSI

      Nail 1 ANSI

   Metric

      Nail 1 Metric

which is difficult because changing the parents cause problems in SW's. You have to delete everything and start over basically(you can copy data or save the excel file so you don't have to type it all back in but SW's isn't going to make it easy).

You can setup excel formulas to help building the hierarchy to make it easy to deal with config name or part number creation. If SW's wouldn't delete the design table data when you deleted a configuration inside SW's then it would be much easier. Unfortunately if you go remove a config in solidworks so you can get around the original problem you I'm having you lose all your data in your design table associated with that config.

I was hoping someone would have some macro to change the parent but maybe this is not easily possible. I'm sure an api or vbs macro could handle the job but I guess no one has had the need to create one.

As far as the envelope stuff goes I'm not sure. I haven't worked with it. It seems to be distinct from what I'm doing and maybe another layer of performance optimization.

What I'm doing is suppressing features in the parent(and possibly children) features that are not necessary. When I want to render the part I can unsuppress these visuals by just editing the design table a little. Using some excel formulas and SW's macro's can make this quite easy.



SM
SM 2011-07-18

A lot or users use the configs to suppress such features.  For the same reasons you

want to.  As far as the hardware and the way you have the configs setup, I don't do it

that way.  Personally I think that is over complicating the configs and maybe confusing the

DT.  I have separate files for screws, nuts etc and have configs inside of them for various

sizes.  The whole purpose of configs is to eliminate excess component files and to consolidate.

SF
SF 2011-07-18

Hmm.. If I understood your problem correctly you are wondering how to reset parent-child relations after those have generated. Simple answer is: SolidWorks does not support this kind of actions directly, as you now know it. So the thing that you could actually do is:

1. Open up your design table

2. Save copy of your table to your disk

3. Close the design table

4. Remove all configurations from your model

5. Insert the table from earlier saved excel file

You should be able to make the needed parent child modifications to saved table in excel before inserting it again. Try it couple of times to see how you could do it, and keep copy of your file in safe place when trying this out.

WF
WF 2011-07-18

1.  Lighten up!

2.  STFU is completely inappropriate.  Your foul language is unacceptable.

SF
SF 2011-07-18

Archival, you might want to take a look at the reply I left to your other post:

https://forum.solidworks.com/message/236719#236719

This is a good community with many people that are willing to help and share. Scott and Alan are really good guys that will take the time to try and help by providing examples.

Samu is right, that's the process I take when I want to do something like this.

SF
SF 2011-07-18

Yeah, I kinda figured that out but was hoping for an easier work around. I tend to just copy the data to the clipboard but I have to be careful not to lose it or it doesn't come back.

I would think a macro could handle this easily though.

SF
SF 2011-07-18

I have no problem with Scott. He's been more than helpful. I think he's tried to help me with every problem I've posted(not always successfully but he's tried). Stoldt OTH has responded with comments like

"Good luck with that, let us know how it goes." "Paul, And there you go."

"Perhaps you can explain to us of lower intelect (meaning me...) why you want to use a Derived Config instead of a Config. Using a Config would likely solve your issue. (But of course, someone with a MENSA background such as yours obviously already knows this...) (See, now I am being Snide, I'll go slow so you can keep up...)"

...and to me that is inappropriate(regardless what Walter thinks). If he doesn't like me for whatever reason then that's his prerogative but it's totally uncalled for on this forum(and most other forums) and I'll not leave it unchallenged. I'm not going to put up with it every time I post. I think he got the picture though so it's over.


SF
SF 2011-07-18

Well I think it's all just a misunderstanding.

This is a nice forum with good collaboration. Welcome. You've been pretty active, that's cool. I used to be but I'm too busy. SolidWorks is a pretty weird program. Lots of things that seem like bugs usually are just either limitations, or the user misinterpreting the software's intentions. This is a good place to find out, as there's lots of users that are willing to test things out.

Cool beans.