Perfect!
You have no idea how many times I use this stuff.
Thank you.

OK, now I see the difference in using VB. I need to learn.
I'll bring my pajama at work!



On Jan 26, 12:37 pm, Splash <[email protected]> wrote:
> Try this.
>
> Right-click on the VB component and go to Output Parameters.  Add an
> Output named B.
>
> Then go to both the Input1 and Input2 and set the List to checked on.
>
> Then change the code in the component to this:
>
>     ''' <your code>
>     If Switch Then
>       A = Input1
>       B = Input2
>     Else
>       A = Input2
>       B = Input1
>     End If
>     ''' </your code>
>
> I believe that is what you are asking for?
>
> On Jan 24, 9:57 am, CAD-NY <[email protected]> wrote:
>
> > Hi Splash, I downloaded the file and I see how important is to learn
> > VB to extend the power of GH.
> > My example is slightly different because the 2 inputs are still
> > present but they change position according to True/False value.
> > I would like to be able to put it into a VB object and seeing what you
> > users are doing with VB I will have to put time aside to study.
> > (my working day is an average of 12+h.....  :-(
>
> > On Jan 24, 10:03 am, Splash <[email protected]> wrote:
>
> > > Here is an updated link to the correct files.  It is a zip file.
>
> > >http://en.wiki.mcneel.com/content/upload/files/Switch_Gate.zip
>
> > > On Jan 23, 9:21 pm, CAD-NY <[email protected]> wrote:
>
> > > > That's what I mean...Very Short!
> > > > But the download link is not working.
>
> > > > On Jan 24, 12:13 am, Splash <[email protected]> wrote:
>
> > > > > Here is a script version of a simple switching gate based on a a true/
> > > > > false pin.
>
> > > > >http://en.wiki.mcneel.com/content/upload/images/swith_GH.jpg
>
> > > > > And the code can be downloaded here:
>
> > > > >http://en.wiki.mcneel.com/content/upload/files/Switch_Gate.ghx
>
> > > > > I hope this helps.
>
> > > > > On Jan 23, 7:59 pm, CAD-NY <[email protected]> wrote:- Hide quoted 
> > > > > text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -

Reply via email to