Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66809

Re: How to copy a wall and it belongs via API?

$
0
0

make sure you are creating a transaction

 

before using this code,select the elements you want to copy


foreach(ElementId eid in eids)
{

XYZ newplace= new XYZ(x,y,z);
var g = ElementTransformUtils.CopyElement(document, eid, newplace);
}

 

this code will also copy the wall belongings.


Viewing all articles
Browse latest Browse all 66809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>