Reference Grasshopper Definition File Name in Grasshopper

Is there a component that can reference the name of the GH definition that you are working on?

e.g. - I’ve build a series of slicers for 3d printing in Grasshopper and when I export the gcode I would like to reference the definition file name in the gcode header.

by my plugin

by C#

path = GrasshopperDocument.FilePath;

image

2 Likes

Fantastic! Thank you.