why is the coordinate different in dxf which I export and in revit?

why is the coordinate different in dxf which I export and in revit?

27925916
Advocate Advocate
539 Views
1 Reply
Message 1 of 2

why is the coordinate different in dxf which I export and in revit?

27925916
Advocate
Advocate

I use the codes to export dwg in revit to dxf file,but the coordinate is not the same between dxf and revit?

            string DXF_Folder = "G:\\";
            string DXF_File = "tmpdxf";
            List<ElementId> list = new List<ElementId>();
            list.Add(app.ActiveUIDocument.ActiveGraphicalView.Id);
            doc.Export(DXF_Folder, DXF_File, list, DXFoptions);

 

I try a test to pick a line in revit and find it's coordinate is different with the one in my exported dxf.  And I find the revit's own function of exporting dxf could make the coordinate same between in dxf and in revit.

is any suggestion to my code for exporting dxf? thanks much..

0 Likes
Accepted solutions (1)
540 Views
1 Reply
Reply (1)
Message 2 of 2

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @27925916,

Have you tried modifying the SharedCoords property of DxfExportOptions? http://www.revitapidocs.com/2017.1/1a291c40-65d6-cae1-a69c-e60ef026645a.htm

The TargetUnit property may have bearing also.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes