I am trying to link the rev of 4 parts of an assembly to the assembly's rev so that when the assembly rev changes so do the parts. Anyone have an Idea as to how to do this?
PS. This will be my first post here. I moved from my last job using Pro-E to a SW job about 3 months ago so I apologize if im a little rusty
Thanks!
OK, so is the Rev stored as a custom property? If so, then there is a way. Custom property values can be driven by a dimension using the custom properties dialog. Starting with 2009, dimension values can be driven by custom properties using equations. So:
1. In your main assembly, add a sketch. Put in a construction line. Give its length a dimension.
2. Go to Tools->Equations and add a new equation. Click on the dimension to add it on the left side, then click the little down arrow button in the bottom right of the equation editor to get the list of custom properties. Pick the revision one.
3. Now, start a new in-context sketch in the part. Add a construction line and constrain its endpoints coincident with the endpoints of the assembly sketch. Add a reference dimension for the length of the line.
4. Now in the part, open the Custom Properties dialog. While in the text entry box for the revision custom property, click on the reference dimension in the sketch you added.
Done!
Yes, it is possible, but much more "fringe" if you will. It requires VBA in equations.
1. To change the alpha character revision to a numeric length, you will need the equation:
"[whatever your sketch dim. is]" = asc("[whatever your revision custom property is]")
That will set the line length dimension equal to the ASCII value of the revision letter.
2. To change the numeric length back to the alpha custom property, the equation is more involved.
"dummy" = part.extension.custompropertymanager("").set("[revision]", chr("[sketch dim]"))
where [revision] is the name of the custom property containing revision level. Note that the case of the custom property name in the equation must not match the case of the custom property. For example, if your custom property name is "Rev", then you cannot use "Rev" in the equation. "REV", "rev", rEV", etc. will work just fine. "dummy" can be anything. It is only used so that there is something on the left side of the "=" so that SW will accept it as a valid equation.
Hah! That's funny. I was right - I'm too lazy to do that I'm guessing you can't use VB in custom property boxes yet? That would make it a little easier by allowing a simple call of the char() function.