I’m looking to create a panel in C# for Rhino where I’ll access the longitude and latitude of the drawing. To do so, I’m creating an user control that I want to include in my panel (that is also a user control)
I do not know if I can embed as sub-panel the Sun Panel that already exist (if yes, how?) or if as I’m trying, I can create my own panel and have a Rhino.Render.Sun variable in my code (what I’m trying to do). The issue is when I’m trying to initialize the variable with Rhino.RhinoDoc.ActiveDoc.Lights.Sun, I’m getting an error that that the dll rhcommon_c cannot be load. When I try to add the dll in the references, Visual Studio 2013, the system tells me it is not a valid COM component…
I’m able to code but I won’t say that I know how to code. I am clearly out of my comfort zone here, but I would like to make it work. Any advise?
Thanks a lot
PS: I have seen that going through ActiveDoc is not a great idea. Still I have to understand how to go around it. So if there’s a way to use it, it would be great.