Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Revit link copy

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
NewCad2022
221 Views, 2 Replies

Revit link copy

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.

Tags (1)
2 REPLIES 2
Message 2 of 3
Moustafa_K
in reply to: NewCad2022

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
Message 3 of 3
NewCad2022
in reply to: NewCad2022

thank u so much. you helped me a lot

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report