Ejemplo n.º 1
0
 public void ReplicateMirror(eAxisOrientation planeAxis,
                             Coordinate3DCartesian planeAxisCoordinate1,
                             Coordinate3DCartesian planeAxisCoordinate2,
                             Coordinate3DCartesian planeCoordinate,
                             ref int numberOfObjects,
                             ref string[] objectNames,
                             ref eObjectType[] objectTypes,
                             bool remove = false)
 {
 }
Ejemplo n.º 2
0
 public void ReplicateRadial(eAxisOrientation rotationAxis,
                             Coordinate3DCartesian axisCoordinate,
                             Coordinate3DCartesian axis3DCoordinate,
                             int numberReplication,
                             double incrementAngle,
                             ref int numberOfObjects,
                             ref string[] objectNames,
                             ref eObjectType[] objectTypes,
                             bool remove = false)
 {
 }
Ejemplo n.º 3
0
        /// <summary>
        /// This function radially replicates selected objects..
        /// </summary>
        /// <param name="rotationAxis">The rotation axis used for the replication.</param>
        /// <param name="axisCoordinate">The axis coordinate used to define the rotation axis. [L]</param>
        /// <param name="axis3DCoordinate">The axis coordinate used to define the rotation axis when <paramref name="rotationAxis" /> = <see cref="eAxisOrientation.Line3D" />. [L]</param>
        /// <param name="numberReplication">The number of times the selected objects are to be replicated.</param>
        /// <param name="incrementAngle">The increment angle for each replication.</param>
        /// <param name="numberOfObjects">The number of objects created by the replication.</param>
        /// <param name="objectNames">The object names created by the replication.</param>
        /// <param name="objectTypes">The object types created by the replication.</param>
        /// <param name="remove">True: The originally selected objects are deleted after the replication is complete.</param>
        /// <exception cref="MPT.CSI.API.Core.Support.CSiException"></exception>
        /// <exception cref="CSiException"></exception>
        public void ReplicateRadial(eAxisOrientation rotationAxis,
                                    Coordinate3DCartesian axisCoordinate,
                                    Coordinate3DCartesian axis3DCoordinate,
                                    int numberReplication,
                                    double incrementAngle,
                                    ref int numberOfObjects,
                                    ref string[] objectNames,
                                    ref eObjectType[] objectTypes,
                                    bool remove = false)
        {
            int[] csiObjectTypes = new int[0];
            _callCode = _sapModel.EditGeneral.ReplicateRadial((int)rotationAxis,
                                                              axisCoordinate.X, axisCoordinate.Y, axisCoordinate.Z,
                                                              axis3DCoordinate.X, axis3DCoordinate.Y, axis3DCoordinate.Z,
                                                              numberReplication, incrementAngle, ref numberOfObjects, ref objectNames, ref csiObjectTypes, remove);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            objectTypes = csiObjectTypes.Cast <eObjectType>().ToArray();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// This function mirror replicates selected objects.
        /// </summary>
        /// <param name="planeAxis">The plane axis by which the object is mirrored.</param>
        /// <param name="planeAxisCoordinate1">The axis coordinate used to define the rotation axis. [L]
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToXAxis" />, x1, y1, x2 and y2 define the intersection of the mirror plane with the XY plane.
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToYAxis" />, y1, z1, y2 and z2 define the intersection of the mirror plane with the YZ plane.
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToZAxis" />, x1, z1, x2 and z2 define the intersection of the mirror plane with the XZ plane.</param>
        /// <param name="planeAxisCoordinate2">The axis coordinate used to define the rotation axis. [L]
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToXAxis" />, x1, y1, x2 and y2 define the intersection of the mirror plane with the XY plane.
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToYAxis" />, y1, z1, y2 and z2 define the intersection of the mirror plane with the YZ plane.
        /// When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.ParallelToZAxis" />, x1, z1, x2 and z2 define the intersection of the mirror plane with the XZ plane.</param>
        /// <param name="planeCoordinate">When <paramref name="planeAxis" /> = <see cref="eAxisOrientation.Line3D" />, <paramref name="planeAxisCoordinate1" />, <paramref name="planeAxisCoordinate2" />, and <paramref name="planeCoordinate" /> are used to define the mirror plane. [L]</param>
        /// <param name="numberOfObjects">The number of objects created by the replication.</param>
        /// <param name="objectNames">The object names created by the replication.</param>
        /// <param name="objectTypes">The object types created by the replication.</param>
        /// <param name="remove">True: The originally selected objects are deleted after the replication is complete.</param>
        /// <exception cref="MPT.CSI.API.Core.Support.CSiException"></exception>
        /// <exception cref="CSiException"></exception>
        public void ReplicateMirror(eAxisOrientation planeAxis,
                                    Coordinate3DCartesian planeAxisCoordinate1,
                                    Coordinate3DCartesian planeAxisCoordinate2,
                                    Coordinate3DCartesian planeCoordinate,
                                    ref int numberOfObjects,
                                    ref string[] objectNames,
                                    ref eObjectType[] objectTypes,
                                    bool remove = false)
        {
            int[] csiObjectTypes = new int[0];

            _callCode = _sapModel.EditGeneral.ReplicateMirror((int)planeAxis,
                                                              planeAxisCoordinate1.X, planeAxisCoordinate1.Y, planeAxisCoordinate1.Z,
                                                              planeAxisCoordinate2.X, planeAxisCoordinate2.Y, planeAxisCoordinate2.Z,
                                                              planeCoordinate.X, planeCoordinate.Y, planeCoordinate.Z,
                                                              ref numberOfObjects, ref objectNames, ref csiObjectTypes, remove);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            objectTypes = csiObjectTypes.Cast <eObjectType>().ToArray();
        }