Today i’m working on trying to eliminate the need to manually input a dimension on the end of a common component definition which I regularly use on projects.
The component in question is an equal angle brace which length varies depending on location and project. The component is then named with the c/c dimension as shown. I will then generate report on all required braces and copy the equal angle definitions into a solidworks table for our fabricator to work from.
My question relating to this brace is as so - Is there a way to automatically drive the dimension required at the end of the component definition from the changing dimension within the model? i.e when I change the brace length - thus changing the c/c dimension - can the definition also change with this?
Would something like this work? This is a Dynamic Component that changes the part number based on the distance between the holes which in turn is determined by the length of the bracket. I don’t believe you can change the component’s Definition Name based by @pcmoor would be better qualified to answer that.
You say, “length varies depending on location and project.”
Does this mean the lengths are an unpredictable variable?
Or, is there a predictable set of various lengths which you employ, depending on location and project?
That could work yes, I will try with the method as detailed tomorrow when I am back in the office.
So long as I can still click in and drag the brace end to increase the c/c dimension then it may be a solution. I will have to modify my report template to include the new column but thats no big deal. Currently I only report on the definition name and qty, then copy to a BOM in excel. gain, i’m sure this can be improved upon. Baby steps …
The way I made it, the component’s length can be adjusted with the Scale tool or by entering a length in the UI. Since you didn’t indicate anything about the spacing between the central hole and the one on the left end, I made that spacing fixed. In your screen shots it appears that spacing remained the same. Tthe space between the ends of the bracket and the end holes is fixed as well. You could certainly set up the component so that the spacing between the left and central holes can be adjusted or so the central hole is always in the center of the bracket if that’s appropriate.
If the center to center distance between the holes is an attribute, you can use text functions to define the “Name” attribute - but I think it’s the instance name, not the definition name.
You are correct that the spacing from hole centre to ends of bracket is fixed, as is the spacing between holes on the left(160mm). The only variable is the c/c dim as shown in the OP clip.
Typically I will bring in the equal angle component. Align the holes on the ‘left side’ to another generic component. Then click into the EA Brace and drag the right side until it connects to the variable component (steel beam/wall bracket etc etc)
The instance name will be an acceptable attribute to report from. Are you saying that you would set up attributes to produce the c/c dim, name etc and then use the ‘concantenate’ function to bring it all together. Then generate report on the result?
FWIW, I used the Name attribute to put the part number/name at the top of the Component Options window. I used the same formula to create a custom attribute for the Part Number to get a Part Number column in the report. The attribute is called aPartNumber so it would show first in the viewable but not user settable fields in Options. Of course the Center to Center Distance field doesn’t need to show. I put it there more as a proof for myself that it was all working as desired.
Since dimension changes are done by scaling and scaling the entire thing would deform the holes and change the angles of the chamfers, I made three components. The left one has the two holes with the fixed relationship. It’s position and size is set with attributes and won’t change. The right end contains the third hole and is also fixed in size but its position is adjusted with the length of the bracket. The middle component is simply a flat box that scales with the length change. I hid the joining ends of all three components so it looks solid in the model.
If I were to want the component c/c dimension to snap to increments of 5, where would the round function be introduced?
I had included it in the 'Center component portion but this was causing the end of said component to behave oddly - not staying joined with ‘Right Side’.
I’m glad you got it to work. I was just getting at it when I read your question and needed to get some coffee in.
So now you have the bracket’s length adjustable in 5mm increments?
Maybe it doesn’t matter since you have it sorted but is the right end hole always the same distance from the end of the bracket? I suppose it’s more like the end of the bracket is always the same distance from that hole?
So the bracket length itself works as before . The part name now rounds to the nearest 5. So if the c/c dimension shows 103 then the part name states EA50_B_105.
I wasnt sure how to get the model functioning so as to snap in increments of 5 when scaling. (so the c/c dim would snap from say 97 to 95)
Even though I have found a workaround, I am curious as to how the model could function as stated above? Do you have any advice on this?