# solid-bySweep Curve problems with profile

**URL:** <https://forum.dynamobim.com/t/solid-bysweep-curve-problems-with-profile/68542>\
**Category:** Uncategorized\
**Created:** [September 24, 2021, 2:20pm UTC](https://forum.dynamobim.com/t/solid-bysweep-curve-problems-with-profile/68542 "2021-09-24T14:20:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![einar.kretzler](https://avatars.discourse-cdn.com/v4/letter/e/13edae/32.png) [@einar.kretzler](https://forum.dynamobim.com/u/einar.kretzler)\
**Post date:** [September 24, 2021, 2:20pm UTC](https://forum.dynamobim.com/t/solid-bysweep-curve-problems-with-profile/68542/1 "2021-09-24T14:20:58Z")

</div>

Hello i am trying to use a revit profile saved in the project and a path from revit to create a solid by sweep.  
in the moment i get the following message:  
Warnung:Solid.BySweep erwartet Argumenttyp(en) (Curve, Curve), wurde jedoch mit (Autodesk.DesignScript.Geometry.Curve, Revit.Elements.ModelCurve) abgerufen.

How can i convert Curve to objecttype curve that soli[solidbysweep.dyn](https://forum.dynamobim.com/uploads/short-url/5upYxxulbDut7GsFAl1YZaSBu6Q.dyn) (14.0 KB)  
[profil\_ek.rfa](https://forum.dynamobim.com/uploads/short-url/fFLY3gFTyMFgAuRMAyQRBEjMMDd.rfa) (264 KB)  
d.BySweep expects?

---

<div class="post-metadata">

**Author:** ![ingenieroahmad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ingenieroahmad/32/72992_2.png) [@ingenieroahmad](https://forum.dynamobim.com/u/ingenieroahmad)\
**Post date:** [September 26, 2021, 8:43am UTC](https://forum.dynamobim.com/t/solid-bysweep-curve-problems-with-profile/68542/2 "2021-09-26T08:43:36Z")

</div>

Try Element.Geometry for path before Sweep node as i see u r using model curve
