Exemplo n.º 1
0
        /***************************************************/
        /**** Private methods                           ****/
        /***************************************************/

        private bool CreateObject(St7RigidMPLink link)
        {
            int linkId = GetAdapterId <int>(link);
            // Geometry
            int uID = 1;
            int err = 0;

            List <int> nodeIds = link.SlaveNodes.Select(nd => GetAdapterId <int>(nd)).ToList();

            nodeIds.Insert(0, GetAdapterId <int>(link.MasterNode));
            int[] connection = nodeIds.ToArray();

            err = St7.St7SetRigidMultiPointLink(uID, linkId, nodeIds.Count, link.UCS, (int)link.UCSPlane, connection);
            if (!St7Error(err))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 private int addElementToGroup(int uID, int groupID, St7RigidMPLink link)
 {
     return(St7.St7SetEntityGroup(uID, St7.tyLINK, GetAdapterId <int>(link), groupID));
 }