Ejemplo n.º 1
0
        // === Get/Set

        /// <summary>
        /// This function retrieves the release assignments for a frame end release.
        /// </summary>
        /// <param name="name">The name of an existing frame end release.</param>
        /// <param name="iEndRelease">Booleans indicating the I-End releases.</param>
        /// <param name="jEndRelease">Booleans indicating the J-End releases.</param>
        /// <param name="iEndFixity">Values indicating the I-End partial fixity springs.</param>
        /// <param name="jEndFixity">Values indicating the J-End partial fixity springs.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetReleases(string name,
                                out DegreesOfFreedomLocal iEndRelease,
                                out DegreesOfFreedomLocal jEndRelease,
                                out Fixity iEndFixity,
                                out Fixity jEndFixity)
        {
            bool[]   csiiEndRelease = new bool[0];
            bool[]   csijEndRelease = new bool[0];
            double[] csiiEndFixity  = new double[0];
            double[] csijEndFixity  = new double[0];

            _callCode = _sapModel.NamedAssign.ReleaseFrame.GetReleases(name, ref csiiEndRelease, ref csijEndRelease, ref csiiEndFixity, ref csijEndFixity);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            iEndRelease = new DegreesOfFreedomLocal();
            iEndRelease.FromArray(csiiEndRelease);

            jEndRelease = new DegreesOfFreedomLocal();
            jEndRelease.FromArray(csijEndRelease);

            iEndFixity = new Fixity();
            iEndFixity.FromArray(csiiEndFixity);

            jEndFixity = new Fixity();
            jEndFixity.FromArray(csijEndFixity);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This function returns a list of constraint assignments made to one or more specified point elements.
        /// </summary>
        /// <param name="name">The name of an existing point element.</param>
        /// <param name="degreesOfFreedom">These are the restraint assignments for each local degree of freedom (DOF), where 'True' means the DOF is fixed.</param>
        /// <exception cref="CSiException"></exception>
        public void GetRestraint(string name,
                                 ref DegreesOfFreedomLocal degreesOfFreedom)
        {
            bool[] values = new bool[0];

            _callCode = _sapModel.PointElm.GetRestraint(name, ref values);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            degreesOfFreedom.FromArray(values);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns a list of constraint assignments made to one or more specified point elements.
        /// These are the restraint assignments for each local degree of freedom (DOF), where 'True' means the DOF is fixed.
        /// </summary>
        /// <param name="name">The name of an existing point element.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public DegreesOfFreedomLocal GetRestraint(string name)
        {
            bool[] values = new bool[0];

            _callCode = _sapModel.PointElm.GetRestraint(name, ref values);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            DegreesOfFreedomLocal degreesOfFreedom = new DegreesOfFreedomLocal();

            degreesOfFreedom.FromArray(values);
            return(degreesOfFreedom);
        }