How To Convert Autocad Point to Revit Coordinates Using Revit API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Basically I have "Points" created in autocad with X and Y values as seen from the screenshot below:
Note that the line connecting the points is just so when I bring this dwg file to Revit, I can pick the line and check the values of the points later.
So, I linked the dwg file in Revit and to see the values of the "Points", I converted the line to a "Property LIne" so I can conveniently display the values using the "Spot Coordinates" tag. (as seen from the image below)
My question is, how come the values of points in Autocad differs from Revit as shown by the image above?
And to correct the difference, I need to "Acquire the Coordinates" and as you can see from the image below, they now match exactly.
So is there a way I can use the Revit API to programmatically 'Set" the X and Y values to create the same effect as in the last image above without having to go through the process of creating the points in Autocad, linking it in Revit and acquiring the coordinates just to get the correct X and Y values?
Btw, I tried to create a line using the API by using the Line.CreateBound() method passsing in the X and Y coordinates of the dwg points but its way too far and seems not correct as if it was done using the "Acquire Coordinates".
So any pointers if this is possible via Revit API is greatly appreciated.
And just incase, I have attached the dwg and Revit file used as example for convenience.
Thank you.