RAddObjectsOperation
Posted: Fri Sep 28, 2018 11:12 am
Hello and thank you for your time,
When using RAddObjectOperation, is it possible to also change the REntity properties?
What I am trying to achieve is:
However, the object that gets added still keeps the default properties of belonging to layer 0 and being colored by layer.
Thank you,
Pere
When using RAddObjectOperation, is it possible to also change the REntity properties?
What I am trying to achieve is:
Code: Select all
var hatch = new RHatchEntity(document, hatchData);
hatch.setColor(new RColor(0, 0, 255, 1));
hatch.setLayerId(MyLayerId);
var op = new RAddObjectOperation(hatch, true, true);
di.applyOperation(op);
Thank you,
Pere