Hi there,
does anyone know if AddGuide
is possible in RhinoCommon?
I discovered this function recently and would love to add guides automatically to objects…
So far I found nothing in the documentation.
Thanks,
T.
Hi there,
does anyone know if AddGuide
is possible in RhinoCommon?
I discovered this function recently and would love to add guides automatically to objects…
So far I found nothing in the documentation.
Thanks,
T.
Yes, the answer is no, see here.
@dn.aur thanks.
So this means the only way woudl be to get the points of edges/lines and automate it via the commandline.
Theoretically no, practically yes. You could always put some lines with custom style, color and opacity on a seperate layer and toggle the visibility on certain actions, e.g. adding geometry. For the later, i am not sure, how to achieve it.
@tobias.stoltmann you could look into using ConstructionPoints or SnapPoints. I think conceptually you end up with the “guides” being relative to the command that’s being used, rather than being a global thing like AddGuides
. Depending on what you’re doing, this could be better?
You could also make your own version of AddGuides
using DisplayConduits and snapping, although it seems the infinite lines that AddGuides uses are not so straight forward to implement.
I’ve used construction/snap points previously to make a tailored polyline command that snaps to increments, i.e. 600, 1200, 1800, 2400mm etc. I’ve also used it on surfaces to control where a user could pick a “split” point, again based on a module length. I’m sure you can make it as fancy/simple as you want it to be.
@Lukxf this is a neat approach.
I will check how I can use this.
Let me just include @wim as I know he deals with this topic.
https://mcneel.myjetbrains.com/youtrack/issue/RH-43040
For me the beauty of the guides really is that I can define any leading geometry very easily. I have to say that they are easy to use and are really really powerful.
So if woudl be very happy if this feature woudl be enhanced, as I think a lot of users are craving for it!
@wim
I updated the link.
Would you be so kind as to delete the link in your answer, as it is a work related one and I am a bit embarrassed that I pasted the wrong link