Revit API Support

Anonymous

Revit API Support

Anonymous
Not applicable

Hi, 

 


How to Create  Revit Family using an AutoCAD DXF file. and how to add connection points to the family as defined in an external XML file   using dxf file.

 

Thanks

 

0 Likes
Reply
454 Views
3 Replies
Replies (3)

augusto.goncalves
Alumni
Alumni
To import a AutoCAD drawing as a family you will can check the \Revit 2015 SDK\Samples\FamilyCreation\DWGFamilyCreation sample (please download the SDK from www.autodesk.com/developrevit)

Please note this is a simple import, the drawing will come as a solid, not a parametric element. Also, this is valid for .dwg files.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes

Anonymous
Not applicable

Thanks for reply..

But i m looking for .dxf file to import in revit and need to add some parameter and add connection point to it as it is for revit file.

 

Is this seems to be feasible, i m just confuse about it..

Please help as i m not getting any help on this topic.

 

Any suggestions appreciable.

 

Thanks & Regards,

Sham..

0 Likes

augusto.goncalves
Alumni
Alumni
Sham,

The code is:
Document.Import(....)
And you need the .dxf file name and the DWGImportOptions configured (or null will assume default values).

From inside Revit you cannot read the original .DXF information, the file will be imported as a single solid.

Have you tried manually import this .dxf? The API will mimic the UI behaviour.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes