How to link to another part

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
Uncle_Hairball
Posts: 179
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 27
x 90

How to link to another part

Unread post by Uncle_Hairball »

I'm working on an assembly and trying to link the height of a linear pattern to the height of the part being patterned. Somehow, I need to add the part name to the variable I'm using, but cannot figure out the syntax. It's got to be something like "D1@Boss-Extrude1.Part_Name", but SW isn't happy with that.
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1629
x 2044

Re: How to link to another part

Unread post by Glenn Schroeder »

In a case like that I don't bother with syntax. I create a sketch in the Assembly with a vertical construction line, with both ends fully defined by relations (in your case the end points would be coincident with the top and bottom of the Part). Insert a driven dimension for the line length and close the sketch.

Set up a global variable linked to this dimension, then reference that global variable in the linear pattern. I didn't give a lot of detail on that last part, but feel free to ask if you have questions.
"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"
User avatar
SPerman
Posts: 1834
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2014
x 1688
Contact:

Re: How to link to another part

Unread post by SPerman »

There is also the "up to reference" option in the linear pattern, but it can be finicky. Glenn's approach is a good one.
image.png
image.png (17.11 KiB) Viewed 870 times
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
User avatar
XHawkeye
Posts: 46
Joined: Thu Apr 08, 2021 4:45 pm
Answers: 1
Location: DFW
x 54
x 44

Re: How to link to another part

Unread post by XHawkeye »

"D1@Boss-Extrude1@Part_Name<#>.Part"
User avatar
Frederick_Law
Posts: 1822
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1527
x 1374

Re: How to link to another part

Unread post by Frederick_Law »

Use SSP or Master Skeleton.
Linking parts in assembly is fast and easy but difficult to manage.
Do that on a few parts is ok.
When you got more parts, it'll be impossible to avoid cyclic links.
It means changing one part cause other parts to change and change that part again in a never ending loop.
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1629
x 2044

Re: How to link to another part

Unread post by Glenn Schroeder »

Frederick_Law wrote: Thu Feb 23, 2023 2:54 pm Use SSP or Master Skeleton.
Linking parts in assembly is fast and easy but difficult to manage.
Do that on a few parts is ok.
When you got more parts, it'll be impossible to avoid cyclic links.
It means changing one part cause other parts to change and change that part again in a never ending loop.
I will agree that you can run into problems with external references, but that shouldn't be an issue using one Parts dimensions to drive a linear pattern in an Assembly (which is what the OP asked for).
"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"
User avatar
Frederick_Law
Posts: 1822
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1527
x 1374

Re: How to link to another part

Unread post by Frederick_Law »

True, if it's only part to assembly feature.
Uncle_Hairball
Posts: 179
Joined: Fri Mar 19, 2021 12:21 pm
Answers: 2
x 27
x 90

Re: How to link to another part

Unread post by Uncle_Hairball »

Thank you all for your advice. XHawkeye's advice is exactly what I was looking for.
sergio.monti
Posts: 34
Joined: Tue May 04, 2021 2:22 am
Answers: 1
x 48
x 21

Re: How to link to another part

Unread post by sergio.monti »

There also a quick way to do it. Create the pattern first, then double click on the pattern items in the tree -> double click on the dimension of the pattern and edit typing "=" and click on the dimension to link on the part. See gif attacched.
Attachments
Link dimension to part.gif
Post Reply