Example #1
0
        /// <summary>
        /// Retrieves lateral displacement targets for steel design.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        protected void getTargetDisplacements(ITargetDisplacement app)
        {
            app.GetTargetDisplacement(
                out var loadCase,
                out var namePoint,
                out var displacementTargets,
                out var allSpecifiedTargetsActive);

            TargetDisplacements.Clear();
            AllSpecifiedDisplacementTargetsActive = allSpecifiedTargetsActive;
            for (int i = 0; i < loadCase.Length; i++)
            {
                TargetDisplacement targetDisplacement = new TargetDisplacement()
                {
                    PointName = namePoint[i],
                    Value     = displacementTargets[i]
                };
                TargetDisplacements.Add(targetDisplacement);
            }
        }
        /// <summary>
        /// Retrieves lateral displacement targets for steel design.
        /// </summary>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void Fill()
        {
            _apiTargetDisplacement.GetTargetDisplacement(
                out var loadCase,
                out var namePoint,
                out var displacementTargets,
                out var allSpecifiedTargetsActive);

            _allSpecifiedDisplacementTargetsActive = allSpecifiedTargetsActive;

            _targetDisplacements = new List <TargetDisplacement>();
            for (int i = 0; i < loadCase.Length; i++)
            {
                TargetDisplacement targetDisplacement = new TargetDisplacement()
                {
                    PointName = namePoint[i],
                    Value     = displacementTargets[i]
                };
                _targetDisplacements.Add(targetDisplacement);
            }
        }