I have an assembly, with a part inserted which is actually a part, with an inserted part (base part). I can't seem to access the sketch dimensions in the base part from the assembly.
Here's the "structure":
MasterAssembly.sldasm
DerivedPart.sldprt
BasePart.sldprt
I've tried BasePart@DerivedPart-1, DerivedPart-1@BasePart, DerivedPart-1/BasePart, BasePart/DerivedPart-1 and so far, SolidWorks throws the following error:
"GetParentComponentByNameTree Error: Component not found for name '
Can anyone tell me how to access sketch/feature dimensions in the BasePart? This is my first time working with a part made by inserting another part - I'm stumped.
Thanks
SolidworksApi macros
Try
e.g.
Okay - that got me there, but the dimension value isn't changing. I'm guessing I need to drill down into my base part and change that value so instead of D1@Sketch1-BasePart, it should be Depth@Sketch1. Maybe this isn't possible?
I should add - the sketch did change - but the geometry didn't. But when I try that same approach to an extrusion dimension - nothing happens....
The base part dimensions are derived dimensions and can not be changed from the derived part or assembly. So you need to open the base part and then modify it's dimensions.
Thanks Deepak - that did the trick!