How to instance Line SOP based on end point coordinate information

It’s my first time to post a question here. I would really appreciate it if somebody could help me.

I want to draw lots of lines in 3d space, and I have the coordinate information of their endpoints.
A usual way to draw lots of shapes is geometry instancing. However, I think it does not serve my purpose here since it only supports translation, rotation and scaling. I cannot specify the coordinates of endpoints of each line.
How can I achieve this?

I would think of this challenge in two parts:

  • instancing end points
  • instancing lines

Rather than thinking about how that happens together, I think it will be easier for you to think of this as two different pieces of geometry. With a set of known end points you should then be able to make lines for these as well. There’s another thread about the Object CHOP that you might give a read to see if it helps: