so I am not able to figure out if I can take inputs from the command line in grasshopper?
I want to take brep objects as input and then specify constraints ( mechanical assemblies) so i need to have variable number of input and then apply as many constraints required.
I want to use grasshopper as I will have to right code for few operations only. I am not sure I can do that. Please help me out. Thanks
Grasshopper cannot be used as a way to make Rhino commands. Any options and settings that you require for a Grasshopper algorithm must be specified inside the Component network.
It is often possible to make a Grasshopper network flexible enough to deal with multiple or variable amounts of data. However, since there is no way to Recurse or Loop in Grasshopper without customised scripting (VB.NET or C#) you may well run into problems.
Can you be more specific about what it is you want to accomplish? What are these constraints you speak of?
Thanks for your reply. I think I was not very clear, so what I want to do is assemble parts (breps) using constraints (like 2 faces touch, circles co-centric etc ) to form an assembly. I want "command line" to ask me to choose among one of the constraints and then apply by again asking me to select faces or geometries. So do we have any method to take input in this fashion (using scripting as well).
You can definitely use a VB or C# component to ask questions, either via the command line or via a popup dialog box. But it's not going to be a very smooth experience. VB and C# scripts are run within solutions, and it's invariably too late to start setting up starting conditions then.
It sounds like you need a custom component (or some other form of object) that can display a dialog box or command line interface on demand, and then subsequently start a new Grasshopper solution.
For this you will need to make a GHA library using Visual Studio.