コード例 #1
0
        public void ToPolylinesTest()
        {
            PMBoundary boundary  = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles);
            var        polylines = boundary.ToPolylines();

            Assert.AreEqual(2, polylines.Count);
        }
コード例 #2
0
        public void CreateFromPolyLine()
        {
            PMBoundary boundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(TestFiles.CurvesFiles);
            var        polyline = boundary.ToPolylines().First();

            PMBoundary newBoundary = _powerMILL.ActiveProject.Boundaries.CreateBoundary(polyline);

            Assert.NotNull(newBoundary);
        }