Esempio n. 1
0
        public static bool AnalayzeModel(HndzRestraint analyzedDOFs)
        {
            SAPRestraint DOFs = new SAPRestraint();

            DOFs.ConvertFromHndzRestraint(analyzedDOFs);
            return(SAP2000API.AnalayzeModel(DOFs));
        }
Esempio n. 2
0
        public static bool SetRestraint(HndzNode node, HndzRestraint restraint)
        {
            SAPPoint point = new SAPPoint();

            point.ConvertFromHndzNode(node);
            SAPRestraint sapRestraint = new SAPRestraint();

            sapRestraint.ConvertFromHndzRestraint(restraint);
            return(SAP2000API.SetRestraint(point, sapRestraint));
        }
Esempio n. 3
0
 public static bool SetRestraint(IEnumerable <HndzNode> nodes, IEnumerable <HndzRestraint> restraints)
 {
     HndzNode[]      nodesArr      = nodes.ToArray();
     HndzRestraint[] restraintsArr = restraints.ToArray();
     for (int i = 0; i < nodesArr.Length; i++)
     {
         SAPPoint point = new SAPPoint();
         point.ConvertFromHndzNode(nodesArr[i]);
         SAPRestraint sapRestraint = new SAPRestraint();
         sapRestraint.ConvertFromHndzRestraint(restraintsArr[i]);
         bool flag = SAP2000API.SetRestraint(point, sapRestraint);
         if (flag == false)
         {
             return(false);
         }
     }
     return(true);
 }