copy/paste

copy/paste

eligt7MPPZ
Explorer Explorer
160 Views
1 Reply
Message 1 of 2

copy/paste

eligt7MPPZ
Explorer
Explorer

Is there any way to copy to cliboard ---> paste to current view  VIA the api?

I'm trying to copy dimensions from one view to another, which are basically the same but with some differences.

I don't mind having some dimension missing, but for some reason, some of the dimension cannot be COPIED, so the whole selection isn't copied. I can't find the problematic dimensions, as the error dialog shows some property line to which some dimensions are apparently attached to (if only I could find the problematic dimensions....)

I'm trying to use the api to filter out the uncopiable (don't know if that's a word) dimensions, and just copy the valid ones...

Any help would be appreciated

Thank you

0 Likes
161 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

> Is there any way to copy to cliboard ---> paste to current view  VIA the api?

 

Yes, CopyElements:

 

https://www.revitapidocs.com/2022/7b56b5c2-3aff-f42b-ab47-de1f89a1070f.htm

 

For sample code, please refer to the Revit SDK and these articles:

 

 

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes