Esempio n. 1
0
 public void GetLocalAxesAdvanced(string name,
                                  ref bool isActive,
                                  ref int plane2,
                                  ref eReferenceVector planeVectorOption,
                                  ref string planeCoordinateSystem,
                                  ref eReferenceVectorDirection[] planeVectorDirection,
                                  ref string[] planePoint,
                                  ref double[] planeReferenceVector)
 {
 }
Esempio n. 2
0
 public void SetLocalAxesAdvanced(string name,
                                  bool isActive,
                                  int plane2,
                                  eReferenceVector planeVectorOption,
                                  string planeCoordinateSystem,
                                  eReferenceVectorDirection[] planeVectorDirection,
                                  string[] planePoint,
                                  double[] planeReferenceVector,
                                  eItemType itemType = eItemType.Object)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// Sets the advanced local axes data for an existing section cut whose result type is Analysis.
 /// </summary>
 /// <param name="isActive">True: Advanced local axes exist.</param>
 /// <param name="axisVectorOption">Indicates the axis reference vector option.
 /// This item applies only when <paramref name="isActive" /> is True.</param>
 /// <param name="axisCoordinateSystem">The coordinate system used to define the axis reference vector coordinate directions and the axis user vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction or User Vector.</param>
 /// <param name="axisVectorDirection">Indicates the axis reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction.</param>
 /// <param name="axisPoint">Indicates the labels of two joints that define the axis reference vector.
 /// Either of these joints may be specified as None to indicate the center of the specified object.
 /// If both joints are specified as None, they are not used to define the plane reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Two Joints.</param>
 /// <param name="axisReferenceVector">Defines the axis reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is User Vector.</param>
 /// <param name="localPlaneByReferenceVector">This is 12, 13, 21, 23, 31 or 32, indicating that the local plane determined by the plane reference vector is the 1-2, 1-3, 2-1, 2-3, 3-1, or 3-2 plane.
 /// This item applies only when <paramref name="isActive" /> is True.</param>
 /// <param name="planeVectorOption">Indicates the plane reference vector option.
 /// This item applies only when <paramref name="isActive" /> is True.</param>
 /// <param name="planeCoordinateSystem">The coordinate system used to define the plane reference vector coordinate directions and the plane user vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction or User Vector.</param>
 /// <param name="planeVectorDirection">Indicates the plane reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction.</param>
 /// <param name="planePoint">Indicates the labels of two joints that define the plane reference vector.
 /// Either of these joints may be specified as None to indicate the center of the specified object.
 /// If both joints are specified as None, they are not used to define the plane reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Two Joints.</param>
 /// <param name="planeReferenceVector">Defines the plane reference vector.
 /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is User Vector.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void SetLocalAxesAdvancedAnalysis(
     bool isActive,
     eReferenceVector axisVectorOption,
     string axisCoordinateSystem,
     ref eReferenceVectorDirection[] axisVectorDirection,
     ref string[] axisPoint,
     ref double[] axisReferenceVector,
     int localPlaneByReferenceVector,
     eReferenceVector planeVectorOption,
     string planeCoordinateSystem,
     ref eReferenceVectorDirection[] planeVectorDirection,
     ref string[] planePoint,
     ref double[] planeReferenceVector)
 {
 }
Esempio n. 4
0
        // === Get/Set ===

        /// <summary>
        /// This function gets the advanced local axes data for an existing section cut whose result type is Analysis.
        /// </summary>
        /// <param name="nameSectionCut">The name of an existing section cut.</param>
        /// <param name="isActive">True: Advanced local axes exist.</param>
        /// <param name="axisVectorOption">Indicates the axis reference vector option.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="axisCoordinateSystem">The coordinate system used to define the axis reference vector coordinate directions and the axis user vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction or User Vector.</param>
        /// <param name="axisVectorDirection">Indicates the axis reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction.</param>
        /// <param name="axisPoint">Indicates the labels of two joints that define the axis reference vector.
        /// Either of these joints may be specified as None to indicate the center of the specified object.
        /// If both joints are specified as None, they are not used to define the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Two Joints.</param>
        /// <param name="axisReferenceVector">Defines the axis reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is User Vector.</param>
        /// <param name="localPlaneByReferenceVector">This is 12, 13, 21, 23, 31 or 32, indicating that the local plane determined by the plane reference vector is the 1-2, 1-3, 2-1, 2-3, 3-1, or 3-2 plane.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="planeVectorOption">Indicates the plane reference vector option.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="planeCoordinateSystem">The coordinate system used to define the plane reference vector coordinate directions and the plane user vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction or User Vector.</param>
        /// <param name="planeVectorDirection">Indicates the plane reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction.</param>
        /// <param name="planePoint">Indicates the labels of two joints that define the plane reference vector.
        /// Either of these joints may be specified as None to indicate the center of the specified object.
        /// If both joints are specified as None, they are not used to define the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Two Joints.</param>
        /// <param name="planeReferenceVector">Defines the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is User Vector.</param>
        /// <exception cref="CSiException"></exception>
        public void GetLocalAxesAdvancedAnalysis(string nameSectionCut,
                                                 ref bool isActive,
                                                 ref eReferenceVector axisVectorOption,
                                                 ref string axisCoordinateSystem,
                                                 ref eReferenceVectorDirection[] axisVectorDirection,
                                                 ref string[] axisPoint,
                                                 ref double[] axisReferenceVector,
                                                 ref int localPlaneByReferenceVector,
                                                 ref eReferenceVector planeVectorOption,
                                                 ref string planeCoordinateSystem,
                                                 ref eReferenceVectorDirection[] planeVectorDirection,
                                                 ref string[] planePoint,
                                                 ref double[] planeReferenceVector)
        {
            int csiAxisVectorOption = 0;

            int[] csiAxisVectorDirection = new int[0];

            int csiPlaneVectorOption = 0;

            int[] csiPlaneVectorDirection = new int[0];

            _callCode = _sapModel.SectCut.GetLocalAxesAdvancedAnalysis(nameSectionCut, ref isActive, ref csiAxisVectorOption, ref axisCoordinateSystem, ref csiAxisVectorDirection, ref axisPoint, ref axisReferenceVector, ref localPlaneByReferenceVector, ref csiPlaneVectorOption, ref planeCoordinateSystem, ref csiPlaneVectorDirection, ref planePoint, ref planeReferenceVector);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            axisVectorOption    = (eReferenceVector)csiAxisVectorOption;
            axisVectorDirection = new eReferenceVectorDirection[csiAxisVectorDirection.Length];
            for (int i = 0; i < csiAxisVectorDirection.Length; i++)
            {
                axisVectorDirection[i] = (eReferenceVectorDirection)csiAxisVectorDirection[i];
            }

            planeVectorOption    = (eReferenceVector)csiPlaneVectorOption;
            planeVectorDirection = new eReferenceVectorDirection[csiPlaneVectorDirection.Length];
            for (int i = 0; i < csiPlaneVectorDirection.Length; i++)
            {
                planeVectorDirection[i] = (eReferenceVectorDirection)csiPlaneVectorDirection[i];
            }
        }
Esempio n. 5
0
        /// <summary>
        /// This function sets the advanced local axes data for an existing section cut whose result type is Analysis.
        /// </summary>
        /// <param name="nameSectionCut">The name of an existing section cut.</param>
        /// <param name="isActive">True: Advanced local axes exist.</param>
        /// <param name="axisVectorOption">Indicates the axis reference vector option.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="axisCoordinateSystem">The coordinate system used to define the axis reference vector coordinate directions and the axis user vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction or User Vector.</param>
        /// <param name="axisVectorDirection">Indicates the axis reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Coordinate Direction.</param>
        /// <param name="axisPoint">Indicates the labels of two joints that define the axis reference vector.
        /// Either of these joints may be specified as None to indicate the center of the specified object.
        /// If both joints are specified as None, they are not used to define the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is Two Joints.</param>
        /// <param name="axisReferenceVector">Defines the axis reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="axisVectorOption" /> is User Vector.</param>
        /// <param name="localPlaneByReferenceVector">This is 12, 13, 21, 23, 31 or 32, indicating that the local plane determined by the plane reference vector is the 1-2, 1-3, 2-1, 2-3, 3-1, or 3-2 plane.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="planeVectorOption">Indicates the plane reference vector option.
        /// This item applies only when <paramref name="isActive" /> is True.</param>
        /// <param name="planeCoordinateSystem">The coordinate system used to define the plane reference vector coordinate directions and the plane user vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction or User Vector.</param>
        /// <param name="planeVectorDirection">Indicates the plane reference vector primary and secondary coordinate directions, (0) and (1) respectively, taken at the object center in the specified coordinate system and used to determine the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Coordinate Direction.</param>
        /// <param name="planePoint">Indicates the labels of two joints that define the plane reference vector.
        /// Either of these joints may be specified as None to indicate the center of the specified object.
        /// If both joints are specified as None, they are not used to define the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is Two Joints.</param>
        /// <param name="planeReferenceVector">Defines the plane reference vector.
        /// This item applies when <paramref name="isActive" /> is True and <paramref name="planeVectorOption" /> is User Vector.</param>
        /// <exception cref="CSiException"></exception>
        public void SetLocalAxesAdvancedAnalysis(string nameSectionCut,
                                                 bool isActive,
                                                 eReferenceVector axisVectorOption,
                                                 string axisCoordinateSystem,
                                                 ref eReferenceVectorDirection[] axisVectorDirection,
                                                 ref string[] axisPoint,
                                                 ref double[] axisReferenceVector,
                                                 int localPlaneByReferenceVector,
                                                 eReferenceVector planeVectorOption,
                                                 string planeCoordinateSystem,
                                                 ref eReferenceVectorDirection[] planeVectorDirection,
                                                 ref string[] planePoint,
                                                 ref double[] planeReferenceVector)
        {
            arraysLengthMatch(nameof(axisVectorDirection), axisVectorDirection.Length, nameof(axisPoint), axisPoint.Length);
            arraysLengthMatch(nameof(axisVectorDirection), axisVectorDirection.Length, nameof(axisReferenceVector), axisReferenceVector.Length);

            arraysLengthMatch(nameof(planeVectorDirection), axisVectorDirection.Length, nameof(planePoint), planePoint.Length);
            arraysLengthMatch(nameof(planeVectorDirection), axisVectorDirection.Length, nameof(planeReferenceVector), planeReferenceVector.Length);

            int[] csiAxisVectorDirection = new int[axisVectorDirection.Length];
            for (int i = 0; i < csiAxisVectorDirection.Length; i++)
            {
                csiAxisVectorDirection[i] = (int)axisVectorDirection[i];
            }

            int[] csiPlaneVectorDirection = new int[planeVectorDirection.Length];
            for (int i = 0; i < csiPlaneVectorDirection.Length; i++)
            {
                csiPlaneVectorDirection[i] = (int)planeVectorDirection[i];
            }

            _callCode = _sapModel.SectCut.SetLocalAxesAdvancedAnalysis(nameSectionCut, isActive, (int)axisVectorOption, axisCoordinateSystem, ref csiAxisVectorDirection, ref axisPoint, ref axisReferenceVector, localPlaneByReferenceVector, (int)planeVectorOption, planeCoordinateSystem, ref csiPlaneVectorDirection, ref planePoint, ref planeReferenceVector);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }
        }