70001716 GetEntitiesFence() method is rissing an error

Article 70001716
Type Bug
Product WebJS
Version 8004
Date Added 3/23/2020
Fixed 8.8005.0.1 (3/23/2020)
Submitted by Kerry Smith

Summary

GetEntitiesFence() method is rissing an error.

Solution

Fixed in version 8005.0.1

Bellow you can see an example where we add a horizontal line from [2,0,0] to [8,0,0] in our drawing and then we call the GetEntitiesFence method by passing two vertical points.

      var line1 = vdcanvas.AddLine([2, 0, 0], [8, 0, 0], true); // create a horizontal line  
      var p1 = vdcanvas.WorldToView(vdgeo.newpoint(0, -10, 0));// the bottom left point of the zoom window
      var p2 = vdcanvas.WorldToView(vdgeo.newpoint(10, 10, 0)); // the upper right point of the zoom window
      vdcanvas.zoomwindow(p1, p2); // call the zoom window              
      var figs = vdcanvas.GetEntitiesFence([[5, -1, 0], [5, 9, 0]], true); // call the fence with the two vertical points
      for (var i = 0; i < figs.length; i++) {
           figs[i].HighLight = true; // highlight every figure that intersects the fence line
      }
      setTimeout(vdcanvas.redraw); // post a redraw to see the changes

Send comments on this topic.