- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change the top or bottom extension of a standard radius elbow. However, I cannot figure out how to tell whether one end is "top" or "bottom." The only consistent approach I have found so far is to guess, and undo if the guess was incorrect. The Edit Part dialog shows a preview of the part, but not in context of the drawing. Here is essentially what I have so far:
// part in question is part1
// part's connectors are c1 and c2a
// goal is to figure out which (top/bottom) extension corresponds to c2a
FabricationDimensionDefinition topExt = part1.GetDimensions().SingleOrDefault(i => i.Name == "Top Extension");
double part1topExtension = part1.GetDimensionValue(topExt);
double extLength = 5; // pick your length
part1.SetDimensionValue(topExt, extLength);
// oops, wrong extension, try again 50% of the time
Any suggestions for other improvements in technique also welcome, of course.
Solved! Go to Solution.