Macro not fully working

Hello Rhino Community

Any ideas why my macro only runs the project command but not the patch command? I tried each invidually and both work on their own but when I combine them it will only project with the input objects remaining selected.

!-_Project _Selopencrv _SelPt _Enter _Selmesh _Enter
_Patch _Selclosedcrv _Selpts _Enter _PointSpacing=1 _USpans=5 _VSpans=5 _Enter

I also tried:

_Project _Selopencrv _SelPt _Enter _Selmesh _Enter
_Patch _Selclosedcrv _Selpts _Enter _PointSpacing=1 _USpans=5 _VSpans=5 _Enter

Any ideas? Probably something very simple!

Hello - Try:


_Project _Selopencrv _SelPt _Enter _Selmesh _Enter _SelNone _SelLast _SelClosedCrv
_-Patch _PointSpacing=1 _USpans=5 _VSpans=5 _Enter

-Pascal

Thanks Pascal.

It still didn’t work. I see that you removed “Selclosedcrv” from the patch line. This was added on purpose as I was hoping to add a separate input object that is not involved in the _Project command.

So what I want to do is project target points on open curves onto a mesh surface, and then form a Patched surface using the newly projected points and open curves in addition to a closed curve that has already been created in same design space.

I hope that makes sense if not I can send a quick video of the workflow.

I modified my macro above - is that any better?

-Pascal