6 Replies Latest reply on Apr 20, 2018 11:04 AM by jeff@viavi

    Change the Line Width for a graphical objet made with AddLine2

    julienc

      Hi,

       

       

      on  Xpedition Enterprise X-ENTP VX.2 , XdX designer , i made a VBS script , which , among other things, draws some Red Cross on non mounted components.

      I was able to do so , using the following script, but i am unable to change the line Width. Do you please know or provide an example in order to do so? I would be grateful if somebody knows the answer. Here the extract of the script to draw the Red Line :

       

       

      Set iLine = ActiveView.Block.AddLine2(X_LowerLeft,Y_LowerLeft,X_UpperRight,Y_UpperRight)
      Set iColor = iLine.GetObjectColor
          iColor.b = 0
           iColor.g = 0
           iColor.r = 255
           iLine.SetObjectColor(iColor)
           iLine.LineStyle = VDLINE_SOLID
           iLine.FillStyle = VDFILL_SOLID

       

      Thanks for your help.