private void ProccessOrdinateSet(Sheet drawingActiveSheet, OrdinateDimensionSet ordinateSet) { var intents = GetIntentsFromOrdinatesSet(ordinateSet); var placementPoint = GetPlacementPoint(ordinateSet); var dimensionType = ordinateSet.DimensionType; drawingActiveSheet.DrawingDimensions.ChainDimensionSets.Add(intents, placementPoint, dimensionType); }
public InventorOrdinateDimensionSet(OrdinateDimensionSet ordinateDimensionSet) { _ordinateDimensionSet = ordinateDimensionSet; foreach (OrdinateDimension member in _ordinateDimensionSet.Members) { Add(new InventorOrdinateDimension(member)); } }
private ObjectCollection GetIntentsFromOrdinatesSet(OrdinateDimensionSet chainSet) { var memberCount = chainSet.Members.Count; var collection = InventorApplication.TransientObjects.CreateObjectCollection(); for (int i = 1; i <= memberCount; i++) { var intent = (chainSet.Members[i] as OrdinateDimension).Intent; collection.Add(intent); } return(collection); }
private Point2d GetPlacementPoint(OrdinateDimensionSet ordinateSet) { var origin = ordinateSet.Members[1]; return(origin.Text.Origin); }