Change programatically LineType property

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

julia
Registered Member
Posts: 1
Joined: Mon Jan 22, 2018 8:14 pm

Change programatically LineType property

Postby julia » Mon Jan 22, 2018 8:16 pm

Hi,

Is there a possibility to change programatically LineType property of RLineEntity with ISO dash value ? I tried :

Code: Select all

var line = this.createLineEntity(this.getDocument(), point1, point2);
  line.setProperty(new RPropertyTypeId(6), 9); //***Don't know exact values to do****
  var op = new RAddObjectsOperation();
  op.addObject(line);
  this.getDocumentInterface().applyOperation(op);


Thanks.

Return to “QCAD Developers and Contributors”

Who is online

Users browsing this forum: No registered users and 1 guest