I'm working on a better config.
I found the line
Code: Select all
simEntity.setColor(RColor.isByLayer());
Can it be removed as it limits the createLayer function.
Could the following be changed in createLayer to allow for linetypes?
Test1.prototype.createLayer = function(layerName, color, lineType) {// change if (lineType == null)// change lineType = "continuous";// change var layerId = this.newDocument.getLayerId(layerName); if (layerId!==RObject.INVALID_ID) { return layerId; } var layer = new RLayer( this.newDocument, layerName, false, false, color, this.newDocument.getLinetypeId(lineType),// change RLineweight.Weight000 ); var op = new RAddObjectOperation(layer); this.newDocumentInterface.applyOperation(op); return this.newDocument.getLayerId(layerName); };srl