Working with CAD files with Python

Hello,

I have a CAD file with polylines and I want to create floors in Revit 2018 from them. Where can I find in Revit API the different methods, properties, etc.? I have not found anything there or here in the forum… Just things that I can’t use. Where can I start?

Thanks in advance.

1 Like

How much did you look and what did you find? There should be plenty of examples of people getting polylines from CAD files.

Bimorph has nodes for use with CAD imports that can get you lines by layer. If you are set on doing it in Python with API, CAD imports are ImportInstance class and you will have to figure out what you want to do from there.

LinkDWG is another option if you don’t want to import them first.

1 Like

Yes, there is a lot of examples, but made with package nodes like Bimorph, where the code is not accessible. I’m new working with the API and the magic words that I was not able to find is ImportInstance class. Thank you very much :slight_smile: I will start from there.

Hi Aversiyava,

did you succeed To Create floors from polylines?

Do you want to share the node, or can I have a look?

KInd regards,

Willem

Something like this?