Create line with element

  • Electro40
    28th Oct 2017 Member 1 Permalink

    Hi, why does this not work for me (doesn't use the element DSTW):

    sim.createLine(0, 1, 610, 1, elements.DEFAULT_PT_DSTW)


    It just draws a line with DUST.

  • LBPHacker
    28th Oct 2017 Developer 0 Permalink

    Because you're passing the type too early. It needs two more parameters; radius x and radius y which should probably both be 0 in your case.

     

    Edit: Oh also you're creating your line inside the unsafe area (i.e. in the area where in void edge mode everything is deleted and in solid edge mode there is a wall), so your line of DSTW is only visible if the simulation is paused.

    Edited 2 times by LBPHacker. Last: 28th Oct 2017
  • Electro40
    28th Oct 2017 Member 0 Permalink

    Thanks!