I'm new to Revit Api Programming..I want to make program that user can select any object he has drawn, then he will get the object repeated. the problem is i don't know how to identify object to get its parameters and the point to repeat it ..Any guidelines Please? Thanks In Advance.
I could not find a sample that does exactly what you need but the CopyElement and CopyElements overloaded methods will create duplicate of one or more elements. Please take a look at the Revit 2014 SDK sample for more information: RevitSDK\2014\Samples\DuplicateViews.
Hope this helps.
Best Regards,
Gopinath
thank you MR,,I have checked it but i got a problem :
i have tried to draw circle from :annotate->detail line then select it to repeat
using this command:
XYZ l=new XYZ(10,4,0);
ElementTransformUtils.CopyElement(_doc, E,l);
where E is the Element ID,,it repeatts it in the given x but not in the given y...Any Help?