I want to drive an assembly from a custom properties form in SolidWorks 2015. My pieces are created in situ in order to be linked to a skeleton. That is to say, when the dimensions of the skeleton change, the dimensions of the parts also change.
In order to drive my skeleton, I need to drive a global variable, let's say "length". But I can only do it by being in the room.
What I want: Create a global variable under the assembly driving the global variable of the part.
Do you know how to link these odds? I tried via the txt file but not very practical... On Inventor, you could link 2 files like this without an intermediary file.
That's exactly it, I then drive this global variable from the property form. So if I have a skeleton that drives parts, let's imagine as in real life to simplify:
I have a "Human Body" assembly, I go into the "skeleton" part which drives the "arm" part because when the "skeleton" grows, so does the "arm".
In the "skeleton" part, I click on the length dimension, which I call "Longueur_Bras_Squelette".
Then I create an assembly property form, in which I insert a "number" attribute that I call "Longueur_bras_formulaire" (the names must be different otherwise the system is lost.
In my assembly, I call this form, I change the value of "Longueur_bras_formulaire", there SolidWorks creates this parameter in the custom settings.
Then, I go to the equation editor, create a global variable "Longueur_bras_globale" and set the met equal to the custom property (i.e. "Longueur_bras_globale" = "Longueur_bras_formulaire")
Then, I make the dimensions of the "skeleton" part visible in the assembly then double click on the "Longueur_bras_squelette" dimension, I edit the value with a "=" and I choose "global variable" then "Longueur_bras_globale".
And that's it, everything is linked! (On the other hand, I don't know if we really need this interface via the global variable or if the dimension is directly controllable with the custom property)