This content has been marked as final.
Show 5 replies
-
Re: Modifying base part dimenions
Deepak Gupta Aug 15, 2017 3:24 AM (in response to Todd Carpenter)Try
Part.Extension.SelectByID2 "dimension name@sketch name-base part name@derived part name with instance@assy name", "DIMENSION", 0, 0, 0, False, 0, Nothing, 0
e.g.
Part.Extension.SelectByID2 "D1@Sketch1-BASE@DERIVED-1@Assy", "DIMENSION", 0, 0, 0, False, 0, Nothing, 0
-
Re: Modifying base part dimenions
Todd Carpenter Aug 15, 2017 10:40 AM (in response to Deepak Gupta)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?
-
Re: Modifying base part dimenions
Todd Carpenter Aug 15, 2017 10:42 AM (in response to Todd Carpenter)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....
-
Re: Modifying base part dimenions
Deepak Gupta Aug 15, 2017 10:57 AM (in response to Todd Carpenter)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.
-
Re: Modifying base part dimenions
Todd Carpenter Aug 15, 2017 12:06 PM (in response to Deepak Gupta)Thanks Deepak - that did the trick!
-
-
-