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: 

create Instances of Selected object Revit Api

2 REPLIES 2
Reply
Message 1 of 3
hala2009
327 Views, 2 Replies

create Instances of Selected object Revit Api

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.

2 REPLIES 2
Message 2 of 3
gopinath.taget
in reply to: hala2009

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

Message 3 of 3
hala2009
in reply to: gopinath.taget

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?

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community