# Instance Mesh placement, join with lines

**URL:** <https://forums.unrealengine.com/t/instance-mesh-placement-join-with-lines/1982487>\
**Category:** Asset Creation\
**Tags:** unreal-engine, question\
**Created:** [August 19, 2024, 7:03am UTC](https://forums.unrealengine.com/t/instance-mesh-placement-join-with-lines/1982487 "2024-08-19T07:03:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MortonPrice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MortonPrice](https://forums.unrealengine.com/u/MortonPrice)\
**Post date:** [August 19, 2024, 7:03am UTC](https://forums.unrealengine.com/t/instance-mesh-placement-join-with-lines/1982487/1 "2024-08-19T07:03:24Z")

</div>

Hi All, I’m trying to instance a mesh from CSV, which is then joined up somehow with lines  
So my CSV creates all the sphere meshes using the CSV X,Y,Z and somehow I want to visualise all the spheres being joined up to all the other spheres either using a line renderer or a particle system.

The red lines are what I’m trying to achieve

 ![Instance Meshes joined up](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/c/55c74a06d5671ed2fa46545233336cc0ca8d20fd.jpeg)

I cant find any examples of this and cant figure it out myself, grateful for a nudge in the right direction

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 19, 2024, 7:38am UTC](https://forums.unrealengine.com/t/instance-mesh-placement-join-with-lines/1982487/2 "2024-08-19T07:38:25Z")

</div>

> [@MortonPrice](#):
>
> a nudge in the right direction

Scrub through thre thread to see what methods are out there:

> [@What are the methods avaiable to draw lines in unreal engine?](https://forums.unrealengine.com/t/what-are-the-methods-avaiable-to-draw-lines-in-unreal-engine/654052):
>
> Hallo everyone, I am exploring different methods to draw lines in unreal engine (my aim is to draw a rectangle projecting from a point using lines). I done some research and found some methods like using direct line method, debug draw, procedural mesh etc. It will be helpful if someone tells anyother method or methods which we can use to draw lines in unreal engine with c++ scripts or any other way?

But you probably want a Niagara beam or ribbon:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/7/cc771b42d930612ed980c9b3aa09134485f1fc82.jpeg "Niagara Beam Tether Tutorial Unreal5.2v") ](https://www.youtube.com/watch?v=WsLDXeZhaSg)

* * *

> all the spheres being joined up to all the other spheres

Or are you asking about the logic?

---

<div class="post-metadata">

**Author:** ![MortonPrice](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MortonPrice](https://forums.unrealengine.com/u/MortonPrice)\
**Post date:** [August 19, 2024, 9:00am UTC](https://forums.unrealengine.com/t/instance-mesh-placement-join-with-lines/1982487/3 "2024-08-19T09:00:17Z")

</div>

Thanks @Everynone, i’m asking more about the logical. i can draw lines no problem, I just cant figure out how to loop through the datatable, connecting all the X,Y,Z positions.

I can add a line to each X,Y,Z lets say this is the line start position, but i cant end the line in the next row on the data table.  
not only that but i want it to draw a line to every row position.  
So if my csv datatable has 8 rows with different x,y,z  
for each row i need it to draw 7 lines and the end position is the other 7 row positions.  
if that makes sense.  
i understand this may also create duplicate lines
