Sweep with pframe in curve VS rectangle

Hello everyone,
I’m trying to sweep on a rectangle with pframe, It’s showing an error. Meanwhile, when I used a curve, it was worked. I don’t know what’s the issue.

Could anyone help me out, please?
I’ve attached screenshots and a grasshopper file.

Thank you.
best regards,
Kenil Savaliya.

inqury.gh (12.5 KB)

Your definition is missing an input. Right click the component and internalize the curve.

I added a Sweep1 with a smaller rectangle for illustration purpose

Hello Martin,
Thanks for your attantion. I’ve attached updated file.
inqury.gh (12.5 KB)

I don’t yet understand what doesn’t work in your first definition.

In general I would suggest to reparametrize curves for evaluation but it doesn’t seem to have an effect here. What does the error bubble say on that red Sweep1 component?

inqury (1).gh (13.2 KB)

Thank you so much Martin. I’ve understand the problem.

Hello Justin,
It’s not working again when I changed the shape of the frame.

J 20201028.gh (18.1 KB)

It helps when curve seam and per frames are at the same place.

J 20201028.gh (25.8 KB)