Revit link copy

Revit link copy

NewCad2022
Participant Participant
368 Views
2 Replies
Message 1 of 3

Revit link copy

NewCad2022
Participant
Participant

Hi there.
Is it possible to copy links in Revit through code and move them to specific coordinates via API c#

NewCad2022_0-1715361570356.png

If this is possible, please tell me how to do this.

0 Likes
Accepted solutions (1)
369 Views
2 Replies
Replies (2)
Message 2 of 3

Moustafa_K
Advisor
Advisor
Accepted solution

sure you can try this example. here i have managed to make a copy of a link and move it by 5 feet in Direction of X

XYZ offsetTranslation = XYZ.BasisX * 5;
ElementTransformUtils.CopyElement(Doc, rvtlink.Id, offsetTranslation);

 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes
Message 3 of 3

NewCad2022
Participant
Participant

thank u so much. you helped me a lot

0 Likes