Moving topography surface using API

Moving topography surface using API

shershahbacha9
Advocate Advocate
404 Views
2 Replies
Message 1 of 3

Moving topography surface using API

shershahbacha9
Advocate
Advocate

Hey, i created topography using API but its not seen in drawing area and is far somewhere. I want to select it and move it somewhere near to origin.

I tried the method "ElementTransformUtils.MoveElement" which is asking for Document,element.id , point to be moved. But its not working. I think this method is for points based elements. I need to select one point(XYZ) in current topography and tranform it to to new XYZ somewhere near to origin.

0 Likes
405 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Afaik MoveElement works for all elements.

 

Can you move the surface manually in the user interface?

  

In general, if a feature is not available in the Revit product manually through the user interface, then the Revit API will not provide it either.

 

You should therefore research the optimal workflow and best practices to address your task at hand manually through the user interface first.

  

Once you have got that part sorted out, it is time to step up into the programming environment.

   



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

shershahbacha9
Advocate
Advocate

yes, i can manually move it by selecting surface, click move option, then click anywhere on surface and transform it to next click point

0 Likes