Hi Rajaa,

Could you please send me the component definition for Manuel's case? I
also meet trouble to create multiple sweep objects with corresponding
rails and sections, respectively.

Thank you very much,

Bamboo

On Mar 17, 11:51 pm, Rajaa <[email protected]> wrote:
> Hi Manuel,
> I sent you an email directly with the component definition that should
> work in your case.
>
> Basically, you needed to input one cross section (not a list).  This
> way, each rail is matched with one cross section.  The original sample
> works for one rail and multiple cross sections.
>
> Please note that the sample is not meant and indeed does not work like
> Rhino "Sweep1" command.  It is a very simplified version of it that
> doesn't do curve direction matching, etc.
>
> This is how the script function need to look like.  The sweep function
> doesn't need to change.
>
>   Sub RunScript(ByVal Rail As OnCurve, ByVal CrossSection As OnCurve)
>     'Declare new list of breps
>     Dim Sweep1_Breps As New List(Of OnBrep)
>
>     'Declare new list of cross section curves
>     Dim sCurves As New List( Of OnCurve )
>     'Add input curve to the list
>     sCurves.Add(CrossSection)
>
>     'Call sweep function
>    Sweep1(Rail, sCurves, Sweep1_Breps)
>
>     'Return Breps
>     Breps = Sweep1_Breps
>   End Sub
>
> I hope this helps.
>
> On Mar 12, 10:07 am, bgcallam <[email protected]> wrote:
>
> > Hi Manuel,
>
> > I never did get that component to work...I ended up using another work
> > around.
>
> > With regard to the script you have been exploring, perhaps you could
> > use the join command in grasshopper on the curves before you apply the
> > sweep? I'll try to have a more in depth look at this when I get a bit
> > more time, although I wouldn't be surprised if we see the sweep
> > components getting an upgrade in coming release(s).
>
> > Cheers,
>
> > Ben
>
> > On Mar 11, 11:30 am, "Manuel A." <[email protected]> wrote:
>
> > > Hi,
> > > I explore in the component's vb script and I think that the component
> > > only accept one rail as input and not a list of rails as I thought.
> > > Here is what I found in the script:
> > > ...
> > > Sub RunScript(ByVal Rail As OnCurve, ByVal Shapes As List(Of OnCurve))
> > > .......
> > > SubSweep1( ByVal Rail As IOnCurve, ByVal sCurves As List(Of OnCurve),
> > > ByRef Sweep1_Breps As List(Of OnBrep))
> > > ...
>
> > > I don't know nothing about programming, but i believe that it have to
> > > say something like ByVal Rail As List (Of OnCurve) or something
> > > similar, Is that the problem? Can someone help me with this? or
> > > someone already make a component like the one I need? I didn't find
> > > anything in older posts and older files are no longer available.
>
> > > Thanks and sorry for any mistakes in my english.- Hide quoted text -
>
> > - Show quoted text -

Reply via email to