Sweep a profile Family along Curve / Incorrect Scale!

Hello,
I need some help with modelling a family profile that sweeps a curve, this curve is a 3D polyline that I need to import from Autocad.

So, I linked my DWG file, I made this script in order to have the families I am looking for.

The problem is, when I close my Dynamo file everything disappears in revit, and when I look for the family I create I find that the scale is incompatible.

I can’t figure out if the problem is in my family or in my model

In this picture, it still created, but i cant select it, and if i close Dynamo file, it desapear.

Do you have any ideas to solve this problem please ?

3D polyline.dwg (18.9 KB)
Sweep Family.dyn (123.6 KB)
Sweep Family.rvt (2.0 MB)

Hello @Asma_LA …which revit version are you in…if you are 2022 spring familyinstance doesnt work so good…you could try family insert from Synthezise…


you need to use revit 23 and autocad 23
Home.dyn (74.5 KB)
Projekt1.rvt (3.1 MB)

@sovitek Thank u for reply i use revit 2022.1, even if I use the “FamilyType.ByGeometry” node I have the same scaling problem


Hi I mean this one here from synthezise or try @RMohareb amazing package and nodes

@sovitek The node “K-Family Insert” is from wich package please?

Synthezise Toolkit

@RMohareb thnak u for this solution, I am trying it. I cant open the revit file because it’s from a recent version then revit 2022. But the Dynamo file i have this error

“Warning: CADApplication…ctor operation failed.
Opération non disponible (Exception from HRESULT: 0x800401E3 (MK_E_UNAVAILABLE))”

you need to open Autocad aplplication when you run the dynamo revit
You need adaptive family for that you need to open revit file to get the family

@sovitek It work Very well, thank u.

By the way Happy bithday !

Thanks Asma…yeps times fly :wink: if the solution work then mark it as solution so other probably can use it :slight_smile:

Hello @sovitek I want to name give family name and subcategory but it take string and number and the second problem OUT give me Failed to load… Thanks in Advance