variable length components
variable length components
In Creo, I can add a component to an assembly, and then control its size using rules (it's called "flexible components"). How is that done in Solidworks?
I have a pin that is cut to length and put into the product. I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches.
I have a pin that is cut to length and put into the product. I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches.
- mattpeneguy
- Posts: 1386
- Joined: Tue Mar 09, 2021 11:14 am
- x 2489
- x 1899
Re: variable length components
Configure the dimension?
Re: variable length components
KSHansen
You can also add an in-context relation by editing the part in the assembly, such as setting an extrude feature to end at the surface of some other part. Note that we never use in-context relations, as it screws us over in file management. You could also drive everything with a layout, though we don't do that either.
"I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches."
In the case you describe, we wouldn't either, but if our actual assembly involved doing something like that, cutting something to size in the process of creating the assembly, then that is how we would model it.
Dwight
You can also add an in-context relation by editing the part in the assembly, such as setting an extrude feature to end at the surface of some other part. Note that we never use in-context relations, as it screws us over in file management. You could also drive everything with a layout, though we don't do that either.
"I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches."
In the case you describe, we wouldn't either, but if our actual assembly involved doing something like that, cutting something to size in the process of creating the assembly, then that is how we would model it.
Dwight
- Glenn Schroeder
- Posts: 1522
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1759
- x 2132
Re: variable length components
I'd also recommend using configurations.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."
Ray Wylie Hubbard in his song "Mother Blues"
Ray Wylie Hubbard in his song "Mother Blues"
- AlexLachance
- Posts: 2187
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2373
- x 2015
Re: variable length components
Careful with configurations, having the rod's length changed will also affect the rod's length displayed in your BOM.
As Dwight said, if I wanted to take something of a given length and have it cut down, I'd most likely have a sub-assembly created to do the assembly cut on it. Makes the displaying of the process easier too.
As Dwight said, if I wanted to take something of a given length and have it cut down, I'd most likely have a sub-assembly created to do the assembly cut on it. Makes the displaying of the process easier too.
Re: variable length components
Configure Dimension does not come up when I right-click the dimension.
I'm not quite sure how this works, but I'm also trying to avoid having to create a huge list of configurations in the pin model, to go along with the huge list of configurations in my assembly. Fortunately the pin model is a generic model - not a model that is used on a production drawing - so I could do odd things to it, if need be. But the model is just for visuals, not for production records.
Re: variable length components
Those seem like the 2 most straightforward options to me. If neither of those work, I'm not sure what to recommend.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Re: variable length components
I've never worked with changing component dimensions in an assembly, except for the aforementioned flexible components. So what you're saying sounds like it might work for me, but I don't really understand it. Like, "drive everything with a layout." Not sure what that means.Dwight wrote: ↑Tue Jun 28, 2022 1:39 pm KSHansen
You can also add an in-context relation by editing the part in the assembly, such as setting an extrude feature to end at the surface of some other part. Note that we never use in-context relations, as it screws us over in file management. You could also drive everything with a layout, though we don't do that either.
"I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches."
In the case you describe, we wouldn't either, but if our actual assembly involved doing something like that, cutting something to size in the process of creating the assembly, then that is how we would model it.
Dwight
By the way, Dwight, you look familiar. Did you ever play The Affable Neighbor in a TV sitcom?
- mike miller
- Posts: 878
- Joined: Fri Mar 12, 2021 3:38 pm
- Location: Michigan
- x 1070
- x 1231
- Contact:
Re: variable length components
I have a hunch you're looking for driving a part length ad hoc. This is where you model the pin at 3", but want it to be 5" in one assembly and 6" in another without actually changing the part model. Solid Edge has a similar feature but they call it Adjustable Part.KSHansen wrote: ↑Tue Jun 28, 2022 2:13 pm Configure Dimension does not come up when I right-click the dimension.
I'm not quite sure how this works, but I'm also trying to avoid having to create a huge list of configurations in the pin model, to go along with the huge list of configurations in my assembly. Fortunately the pin model is a generic model - not a model that is used on a production drawing - so I could do odd things to it, if need be. But the model is just for visuals, not for production records.
No, SWX has nothing of the sort, but I guess SE doesn't have easy configurations either.....
He that finds his life will lose it, and he who loses his life for [Christ's] sake will find it. Matt. 10:39
Re: variable length components
Correctmike miller wrote: ↑Tue Jun 28, 2022 2:34 pm ... This is where you model the pin at 3", but want it to be 5" in one assembly and 6" in another without actually changing the part model. ...
On the other hand, since the pin model isn't used for anything else, I could have its length updated every time I open a new configuration of the assembly...
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
Nice option in SE that I wish SWX had.mike miller wrote: ↑Tue Jun 28, 2022 2:34 pm I have a hunch you're looking for driving a part length ad hoc. This is where you model the pin at 3", but want it to be 5" in one assembly and 6" in another without actually changing the part model. Solid Edge has a similar feature but they call it Adjustable Part.
image.png
No, SWX has nothing of the sort, but I guess SE doesn't have easy configurations either.....
SolidWorks has what's called a "Flexible Part". You build the rod length "in context". Then insert it into other assemblies and toggle it "Flexible" which prompts to select an assembly reference to control it length.
Jason
Re: variable length components
Make those components flexible.KSHansen wrote: ↑Tue Jun 28, 2022 12:10 pm In Creo, I can add a component to an assembly, and then control its size using rules (it's called "flexible components"). How is that done in Solidworks?
I have a pin that is cut to length and put into the product. I don't want to put an eight-foot rod into the assembly and use an assembly cut to cut it down to six inches.
https://help.solidworks.com/2022/englis ... onents.htm
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
The part I don't like is having to build it in-context. I suppose I don't have to keep that assembly, but still feels like a kludged together function. I should be able to establish the "flexible" geometry parameters in the part directly.Alin wrote: ↑Tue Jun 28, 2022 6:40 pm Make those components flexible.
https://help.solidworks.com/2022/englis ... onents.htm
Jason
Re: variable length components
Jasonjcapriotti wrote: ↑Tue Jun 28, 2022 10:54 pm The part I don't like is having to build it in-context. I suppose I don't have to keep that assembly, but still feels like a kludged together function. I should be able to establish the "flexible" geometry parameters in the part directly.
How would you prefer to establish those parameters in the part? Like creating a look-up table in the part?
Dwight
- Glenn Schroeder
- Posts: 1522
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1759
- x 2132
Re: variable length components
From a post further down I'm guessing you tried this in the Assembly. If the dimension belongs to the Part you need to configure it in the Part, then reference the desired Part configuration in the Assembly.KSHansen wrote: ↑Tue Jun 28, 2022 2:13 pm Configure Dimension does not come up when I right-click the dimension.
I'm not quite sure how this works, but I'm also trying to avoid having to create a huge list of configurations in the pin model, to go along with the huge list of configurations in my assembly. Fortunately the pin model is a generic model - not a model that is used on a production drawing - so I could do odd things to it, if need be. But the model is just for visuals, not for production records.
I know I said yesterday that configurations were the way to go, but if this is a library part that will be used extensively, in multiple projects, then configurations might not be the best choice. The simplest solution may be to just copy and paste the Part, give it a new name, and edit the length dimension to what you need for the current project. If it's used multiple times in the same Assembly, then I would use configurations.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."
Ray Wylie Hubbard in his song "Mother Blues"
Ray Wylie Hubbard in his song "Mother Blues"
- AlexLachance
- Posts: 2187
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2373
- x 2015
Re: variable length components
Great question there Dwight. I'd love to see something as people explain in SolidWorks, but I have a hard time figuring out how it would work.
- mattpeneguy
- Posts: 1386
- Joined: Tue Mar 09, 2021 11:14 am
- x 2489
- x 1899
Re: variable length components
Just to clarify on this @KSHansen, you have to open the part to have access to "Configure Dimension". That, or you can "Edit Part" in the assembly to configure the dimension. I think it's this way so that you don't inadvertently select it when you think you may be editing an assembly level dimension.KSHansen wrote: ↑Tue Jun 28, 2022 2:13 pm Configure Dimension does not come up when I right-click the dimension.
I'm not quite sure how this works, but I'm also trying to avoid having to create a huge list of configurations in the pin model, to go along with the huge list of configurations in my assembly. Fortunately the pin model is a generic model - not a model that is used on a production drawing - so I could do odd things to it, if need be. But the model is just for visuals, not for production records.
Unfortunately the software doesn't always work the way we think that it should. But, you can usually do what you need and I think people have given you a lot of options. Maybe give a few a chance and then let us know what works for you?
Re: variable length components
You can design the part in the context of the assembly, with all of the references being to other parts in the assembly. What is added by making the component flexible?
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
When you add the part to another assembly, the in-context reference is not solved since the original assembly is not open. You can toggle the part as flexible and it will prompt for a new external references which will drive the instance geometry. You can even insert a second instance and drive it with a different external reference in the same assembly.
Jason
Re: variable length components
That makes sense. Thanks for the information. That is a very powerful tool.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
A wizard interface like smart components that asks you to pick the features to drive. And stores them in a node in the tree for later editing.
So say I pick an extrude feature, it should show the end condition which I should be able to set "Up to (Flexible)"
Jason
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
Here's an example of a rod.....no configuration. The Length is controlled by a plane with an Up to surface condition.
Insert into assembly and toggle flexible, select the new assembly plane. Works with pattern instances as well.
Insert into assembly and toggle flexible, select the new assembly plane. Works with pattern instances as well.
Jason
Re: variable length components
This worked! I struggled with it for a while, before I got it to work, and I'm still not entirely sure what I did. Also, when I opened a different configuration of the assembly, the planes used to define the length were suppressed, so I had to unsuppress them in each config. Strange. Anyway...jcapriotti wrote: ↑Tue Jun 28, 2022 3:38 pm SolidWorks has what's called a "Flexible Part". You build the rod length "in context". Then insert it into other assemblies and toggle it "Flexible" which prompts to select an assembly reference to control it length.
Now the pin changes length with the size of the assembly, and I don't have to deal with setting up configurations in the pin model. The only downside to be aware of is that every time I open the pin model, its length matches whatever it was last, in the assembly. That's not a problem in this case, because I'm not using a model of a production part - I set it up specially for this situation.
Thanks, J!
- Glenn Schroeder
- Posts: 1522
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1759
- x 2132
Re: variable length components
Going to the configuration properties before adding the planes and de-selecting this option would have fixed that. (I know it's too late, but it might help next time.)KSHansen wrote: ↑Thu Jun 30, 2022 2:20 pm This worked! I struggled with it for a while, before I got it to work, and I'm still not entirely sure what I did. Also, when I opened a different configuration of the assembly, the planes used to define the length were suppressed, so I had to unsuppress them in each config. Strange. Anyway...
Now the pin changes length with the size of the assembly, and I don't have to deal with setting up configurations in the pin model. The only downside to be aware of is that every time I open the pin model, its length matches whatever it was last, in the assembly. That's not a problem in this case, because I'm not using a model of a production part - I set it up specially for this situation.
Thanks, J!
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."
Ray Wylie Hubbard in his song "Mother Blues"
Ray Wylie Hubbard in his song "Mother Blues"
Re: variable length components
Yeah, that looks like it. Um... where do I find that? I did a search for configuration properties in Solidworks, and nothing come ups.Glenn Schroeder wrote: ↑Thu Jun 30, 2022 2:32 pm Going to the configuration properties before adding the planes and de-selecting this option would have fixed that. (I know it's too late, but it might help next time.)
Re: variable length components
Click on the configurations tab, and then right click on a given configuration.
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
-
- Posts: 45
- Joined: Fri Mar 12, 2021 10:46 am
- x 5
- x 54
Re: variable length components
Is the pin a purchased part?
Do you need a drawing to show the cut length of the pin?
If it's a pin you buy in 8ft. lengths, I'd make a weldment profile of the pin, and put the description and part number in the profile.
Then use weldments and make it whatever length you need.
Or,
Draw the pin at the 8ft. length, and create a cut.
Create configurations for different cut lengths, and configure the cut dimension.
Then you just reference that particular configuration of the part in the assembly.
20 years of CAD experience, and I've always had assembly-based, or in-context definitions of parts bite me at some point...
Do you need a drawing to show the cut length of the pin?
If it's a pin you buy in 8ft. lengths, I'd make a weldment profile of the pin, and put the description and part number in the profile.
Then use weldments and make it whatever length you need.
Or,
Draw the pin at the 8ft. length, and create a cut.
Create configurations for different cut lengths, and configure the cut dimension.
Then you just reference that particular configuration of the part in the assembly.
20 years of CAD experience, and I've always had assembly-based, or in-context definitions of parts bite me at some point...
Re: variable length components
The pin model is not for a production drawing. It's just for visuals, to make pictures of the assemblies to use for whatever purposes we need them for.IndianaDave wrote: ↑Thu Jul 07, 2022 11:10 am Is the pin a purchased part?
Do you need a drawing to show the cut length of the pin?
If it's a pin you buy in 8ft. lengths, I'd make a weldment profile of the pin, and put the description and part number in the profile.
Then use weldments and make it whatever length you need.
Or,
Draw the pin at the 8ft. length, and create a cut.
Create configurations for different cut lengths, and configure the cut dimension.
Then you just reference that particular configuration of the part in the assembly.
20 years of CAD experience, and I've always had assembly-based, or in-context definitions of parts bite me at some point...
For this model, I ended up with 50 configurations, and more are possible. That's a lot of configurations to create in the pin, and then set in the assemblies, and chance for error. I would use this same pin in other models, with a similar number of possible lengths, but given the requirement for in-context, I'm not sure this is possible. Anyway, even with the time I spent trying to figure out how to make this work, I think I saved myself a lot of time.
Re: variable length components
You have been presented several good options but before I answer I'd like to have answer first.
How is the part managed and recorded in your CAD BOM, manufacturing BOM or shop floor? This answer should really drive how you manage your part in the other systems.
How is the part managed and recorded in your CAD BOM, manufacturing BOM or shop floor? This answer should really drive how you manage your part in the other systems.
Re: variable length components
The part is not managed in a BOM. It doesn't go to the shop floor since this is just for making pretty pictures for literature. The pin model isn't even connected to a real-world part.
I don't want to create hundreds of configurations for the pin, or create a new config for the pin every time I create a new config for the assembly, I just want to put the pin into the assembly and not have to think about it again.
I don't want to create hundreds of configurations for the pin, or create a new config for the pin every time I create a new config for the assembly, I just want to put the pin into the assembly and not have to think about it again.
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: variable length components
Not sure if it was mentioned, but making it "virtual" is another option, then you can edit the copy inside the assembly. Same as copying the file over and over, you just have to store the file if its virtual.
Jason