Draw an arrow in Grasshopper

Hi,

Fairly question but I cant find it:

I would like to draw a simple arrow between two defined points.
(yes there is the dimension tool, but I dont want the size to show (and its an rather slow component when there are alot of arrows).

In other words → is there an option to convert a line into an arrow?

Any suggerstions?

Many thanks!

Hello,

If you only need visualization, Vector Display is probably the best answer.

There are other fancy solutions.
You could also build the contour with a polyline…

Arrows.gh (9.9 KB)

2 Likes

Hi Thanks, for the quick answer.

I had the same idea, only the thing is that the arrow has to point in both directions… :see_no_evil:

You didn’t mention that detail in your initial post. :man_facepalming:

2 Likes

I imagine duplicating the arrow is not a solution ?

Is it only for display purposes or do you eventually need this arrow to be baked, printed, or whatever that would require curve/surface/solid output ?

1 Like

Haha yep, thats sort of an solution.

However, the thing with the vector preview is that when you zoom out the arrows become automatically very big… (blocking the rest of the view).

I was just wondering if there isnt an GH component, similar to create line A—>B. create arrow A–>B.

Thanks for all the suggestions! :slight_smile:

Ahh Wait, I think I found it!

using the - Line Dimension Component - with at text an empty ‘space’ (so no length is showing) :sweat_smile:

Only remaining question, do you have a suggestion how we can change the colour of this arrow? (instead of red making it black or so?)

image
image

Many thanks! :slight_smile:

This can easily be clustered:


arrows_2023Feb4a.gh (10.9 KB)

Same code in a cluster:
arrows_2023Feb4b.gh (10.5 KB)

3 Likes

Wow nice!

Would it be possible to share the GH file?

Isn’t the image enough? :wink:

1 Like

You mentionned drawing dimensions were too slow for your case, so I removed that as a solution, but indeed it works.

You can use Elefront’s Define Linear Dimension and feed the output in a Custom Preview.

Arrows.gh (10.5 KB)

2 Likes

Haha nice!
the only downside is that you need an extra plugin ‘elefront’ I noticed, this while I would like to limit the amount of plugins needed for this script… :sweat_smile:

You can use Vector Display Ex, which also enables custom weight/color:


230204_VectorDisaplayEx_00.gh (10.0 KB)

4 Likes

If you use Rhino 8, you can use the new Leader component and you can style it using any of the annotation styles in your Rhino document (or you can create your own annotation style).

4 Likes

Haha oke thanks,
I have done it, works perfectly, thanks! :+1:

1 Like

Same code in a cluster:
arrows_2023Feb4b.gh (10.5 KB)