How do I create full-color fills/hatchs on polylines?
Posted: Mon Jun 12, 2017 11:29 am
Hello
How do I create full-color fills/hatchs on polylines?
How do I create full-color fills/hatchs on polylines?
Code: Select all
// doc is your RDocument
// di is your RDocumentInterface
var data = new RHatchData(solid, scale, angle, patternName);
data.setDocument(doc);
data.newLoop();
data.addBoundary(polyline);
...
var hatch = new RHatchEntity(doc, data);
var op = new RAddObjectOperation(hatch);
di.applyOperation(op);