Page 1 of 1

How do I create full-color fills/hatchs on polylines?

Posted: Mon Jun 12, 2017 11:29 am
by pietro_72_
Hello

How do I create full-color fills/hatchs on polylines?

Re: How do I create full-color fills/hatchs on polylines?

Posted: Mon Jun 12, 2017 12:07 pm
by andrew

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);