Remove the zeros from the list

Here I am with another question. As remove the zeros from the list "D"?
  and another onebecause I do not get the lines?

In that site I can see examples of definitions of GH resolved in Python?

Thank you!
  • up

    Alberto Moral

    Hi Fernando,

    Please, upload the rhino file compatible with 4.0

    Hola Fernando,

    por favor, sube el archivo de rhino compatible con la versión 4.0

    1
    • up

      Giulio Piacentino

      Hi Fernando,

      there are other ways to approach this altogether, but I think the attached file answers your question.
      It is based on this code:

      Lineas = [Lineas[i] for i,e in enumerate(D) if e!=0]

      I hope this helps,

      - Giulio
      ________________
      giulio@mcneel.com

      8