From time to time, I’m foolish enough to think I can make text entity work. I’ve almost got it this time, but trying to set the font weight and style is holding me up.
I’m writing a C# script component in Grasshopper. I’m good with C# and I know what enums are, but this phrase from the Rhino API reference has me scratching my head and I’m hoping some of you can enlighten me. If I try to use an int value for the weight or style it pukes.
“Weight enum values Avoid casting these values to int. Use ON_Font::WindowsLogfontWeightFromWeight()”
Thanks, Dale, but I’m trying to minimize the clutter. If I can do what I need in one C# script component, that’s all I need. Having to used 3 or 4 components doesn’t make sense to me.