I have a top-down assembly where I need to update the length of a fastener in a sub-assembly. And I'm still designing, so I may need to go another assembly level deeper.
Part.Parameter("Length@BodySke@HX-SHCS, .25-20 (ALL LENGTHS).Part").SystemValue = X
This command setup works fine for the first level, how do I setup additional deeper levels in my code?
I don't think it makes any difference how deep the component is. I believe that the syntax will always be:
DimensionName@SketchName@PartName.Part
Note that the documentation for ModelDoc2.Parameter recommends not using "." in the part name.