Пример #1
0
        public static bool AddFrameElement(HndzExtrudedElement element, HndzSectionTypeEnum type)
        {
            SAPFrameElement sapElement = new SAPFrameElement();

            sapElement.ConvertFromHndzElement(element, type);
            return(SAP2000API.AddFrameElement(sapElement));
        }
Пример #2
0
 /// <summary>
 /// Send a list/array of elements with the same section types,
 /// if you are sending different types then you have to call this function more than one time
 /// </summary>
 /// <param name="elements">Elements to be drawn and defined in SAP2000 Model</param>
 /// <param name="type">The type of all these elements</param>
 /// <returns></returns>
 public static bool AddFrameElement(IEnumerable <HndzExtrudedElement> elements, HndzSectionTypeEnum type)
 {
     HndzExtrudedElement[] elementsArr    = elements.ToArray();
     SAPFrameElement[]     sapElementsArr = new SAPFrameElement[elementsArr.Length];
     for (int i = 0; i < elementsArr.Length; i++)
     {
         sapElementsArr[i].ConvertFromHndzElement(elementsArr[i], type);
     }
     return(SAP2000API.AddFrameElement(sapElementsArr));
 }