algorithmic modeling for Rhino
K, stupid question time.
On the McNeel Wiki site there are these examples to get people used to using rhinocommon and writing in VB.
I just wanna draw a circle... haha
Right off the bat I am having a problem with declaring public class and the fact that the type hints in the VB component don't include something like Rhinodoc...
I suppose that am calling forward Rhino commands... through the vb component which is backwards...?
Or that I should keep my day job...
Thanks for any direction at all
Tags:
You have to looking for in Rhinocommon Sdk: Rhino.Geometry.Namespace /Circle Constructor
Hi Aaron,
if you want to create a circle inside a VB/C# script component, do the following:
A = New Circle(Plane.WorldXY, 5.0)
Assuming that 'A' is the output parameter. There are a total of 7 different ways to construct a circle, and of course once you have a circle you can access its properties and modify it further.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thankyou thankyou thankyou.
If you have two seconds, I wonder about your perspective on the dropping out of VB in the future as Andy is mentioning below.
Aaron,
Welcome to VB, you will want to check out http://www.rhino3d.com/5/rhinocommon/ for all of your initial questions. The gaps in this database are both massive and cryptic but its a start.
VB is my preferred language but I do have to ask why you are choosing VB instead of C# and/or python?
"All versions of the Visual Basic development environment from 1.0 to 6.0 have been retired and are now unsupported by Microsoft. The associated runtime environments are unsupported too, with the exception of the Visual Basic 6 core runtime environment, which will be officially supported by Microsoft for the lifetime of Windows 8.[21] Third party components that shipped with Visual Studio 6.0 are not included in this support statement. Some legacy Visual Basic components may still work on newer platforms, despite being unsupported by Microsoft and other vendors."
Although it may take a while, VB is coming to an end. I recommend if you are just starting out to pick one of the other two languages because python is cross platform and C# is easily translatable to things like arduino and processing which you may want to get into in the future.
All that being said, stealing code from me and others is the best way to learn. Find posts with recent dates and download the files then run little chunks of the script at a time until you understand what you are looking at.
I am interested in starting a coding tutorial series so if you are interested in something specific that you would like me to make a video tutorial for - send me a message here or visit http://deprocess.org/ and leave a post in the grasshopper section
Awesome, thank you for the detailed input, and processing is something Ive been itching to get into. I will totally checkout your site soon and ponder over a coding challenge. I was just talking with a colleague today about what it would be like to become proficient in such kinds of programming, and then opening a site where we host dialogue. He and I are both recently graduated out of architecture in the states and now work in a small office in Beijing. We figure that there has to be a million other kids in school or just starting out, that have the same questions that we do about scripting for form seeing as more and more offices, especially international offices are beginning to make rhino and grasshopper skills almost required of applicants . It seems you're on a similar trajectory and offering your work openly, commendable sir.
Are you not considering the progression of VB.NET. Whilst not completely the same as it introduced some breaking features VB lives on.
VB 6 --> VB 2002 --> VB 2003 --> VB 2005 --> VB 2008 --> VB 2010
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by