示例#1
0
        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));
            }
        }
示例#3
0
        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);
        }
示例#4
0
        private Point2d GetPlacementPoint(OrdinateDimensionSet ordinateSet)
        {
            var origin = ordinateSet.Members[1];

            return(origin.Text.Origin);
        }