Esempio n. 1
0
 public void GetOffsets(string name,
                        ref eAreaOffsetType offsetType,
                        ref string offsetPattern,
                        ref double offsetPatternScaleFactor,
                        ref double[] offsets)
 {
 }
Esempio n. 2
0
 public void SetOffsets(string name,
                        eAreaOffsetType offsetType,
                        string offsetPattern,
                        double offsetPatternScaleFactor,
                        double[] offsets,
                        eItemType itemType = eItemType.Object)
 {
 }
Esempio n. 3
0
 /// <summary>
 /// This function expands or shrinks selected area objects.
 /// </summary>
 /// <param name="offsetType">Indicates the offset type for the selected area objects.</param>
 /// <param name="offset">The area edge offset distance.
 /// Positive distances expand the object and negative distances shrink the object.[L]</param>
 /// <exception cref="MPT.CSI.API.Core.Support.CSiException"></exception>
 public void ExpandShrink(eAreaOffsetType offsetType,
                          double offset)
 {
     _callCode = _sapModel.EditArea.ExpandShrink((int)offsetType, offset);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
Esempio n. 4
0
        /// <summary>
        /// This function retrieves the joint offset assignments for area elements.
        /// </summary>
        /// <param name="name">The name of an existing area element.</param>
        /// <param name="offsetType">Indicates the joint offset type.</param>
        /// <param name="offsetPattern">This item applies only when <paramref name="offsetType" /> = <see cref="eAreaOffsetType.OffsetByJointPattern" />.
        /// It is the name of the defined joint pattern that is used to calculate the thicknesses.</param>
        /// <param name="offsetPatternScaleFactor">This item applies only when <paramref name="offsetType" /> = <see cref="eAreaOffsetType.OffsetByJointPattern" />.
        /// It is the scale factor applied to the joint pattern when calculating the thicknesses. [L]</param>
        /// <param name="offsets">This item applies only when <paramref name="offsetType" /> = <see cref="eAreaOffsetType.OffsetByPoint" />.
        /// It is an array of thicknesses at each of the points that define the area element. [L]</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetOffsets(string name,
                               ref eAreaOffsetType offsetType,
                               ref string offsetPattern,
                               ref double offsetPatternScaleFactor,
                               ref double[] offsets)
        {
            int csiOffsetType = 0;

            _callCode = _sapModel.AreaElm.GetThickness(name, ref csiOffsetType, ref offsetPattern, ref offsetPatternScaleFactor, ref offsets);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            offsetType = (eAreaOffsetType)csiOffsetType;
        }
Esempio n. 5
0
 public void ExpandShrink(eAreaOffsetType offsetType,
                          double offset)
 {
 }