Hi All,
I am a bit stuck with my arrays trying to place some text on a random paving we are looking to document.
I have generated a quick test file with just 10 rectangles representing pavers (just 3 different sizes). Using a simple range box created some GC information so i can label each one.
It is getting close but my text by function is not working the way i was hoping. I am sure I have the function looping itself as it places all the text on each point :)
just wondering if anyone had some tips on the function below. Also attached the DGN file.
Thanks
Wayne
function (BSplineSurface Paver, TextStyle Style, Point CentrePoint){for (int i = 0; i < Paver.Count; ++i){if(Paver[i].Area > 240000 && Paver[i].Area < 260000 ){Text textarray = new Text(this);string label = "A";Point pnt = CentrePoint;Text text = new Text(textarray).ByPointOrPlaneOrCoordinateSystem(CentrePoint,label,Style);}if(Paver[i].Area > 370000 && Paver[i].Area < 380000 ){Text textarray = new Text(this);string label = "B";Point pnt = CentrePoint;Text text = new Text(textarray).ByPointOrPlaneOrCoordinateSystem(CentrePoint,label,Style);}if(Paver[i].Area > 490000 && Paver[i].Area < 510000 ){Text textarray = new Text(this);string label = "C";Point pnt = CentrePoint;Text text = new Text(textarray).ByPointOrPlaneOrCoordinateSystem(CentrePoint,label,Style);}}}
paving-tags.dgn