Ejemplo n.º 1
0
        public List <double[]> getPointCoordinatesFromLusas()
        {
            List <double[]> pointsCoordinates = new List <double[]>();
            IFSelection     userInp           = lusas.getSelection();
            object          points            = userInp.getObjects("points");

            object[] pointsArray = (object[])points;

            //check if selection is at least one point
            if (pointsArray.Length < 1)
            {
                MessageBox.Show("please select at least one point", "", MessageBoxButtons.OK);
                return(null);
            }

            for (int i = 0; i < pointsArray.Length; i++)
            {
                IFPoint  point    = (IFPoint)pointsArray[i];
                double[] position = new double[3];
                //point.getXYZ(ref position);
                position[0] = point.getX();
                position[1] = point.getY();
                position[2] = point.getZ();
                pointsCoordinates.Add(position);
            }

            return(pointsCoordinates);
        }
Ejemplo n.º 2
0
        private void btn_movePoint_Click(object sender, EventArgs e)
        {
            IFSelection selection = lusas.getSelection();
            object      points    = selection.getObjects("points");

            object[] pointsArray = (object[])points;
            for (int i = 0; i < pointsArray.Length; i++)
            {
            }
        }