Message 1 of 11
FabricationPart SetDimensionValue inconsistency
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change a FabricationPart straight Length dimension from Auto to Value. Here is approximately what I do:
// part is my FabricationPart with Length dimension set to Auto
FabricationDimensionDefinition lengthDefinition = part.GetDimensions().Cast<FabricationDimensionDefinition>().SingleOrDefault(i => i.Name == "Length");
double partLength = part.GetDimensionValue(lengthDefinition);
part.SetDimensionValue(lengthDefinition, partLength); // does not set Length to Value
I think this must be a bug, because if I change the part length value by even a small amount, it works.
part.SetDimensionValue(lengthDefinition, partLength - 0.01); // sets Length to Value
Can someone confirm this is a bug? How do I get around this so I can set the part length to its exact length, but fixed instead of Auto?