Copy to selected levels faster

Copy to selected levels faster

Anonymous
Not applicable
809 Views
7 Replies
Message 1 of 8

Copy to selected levels faster

Anonymous
Not applicable

Hi

 

In revit there is a feature called copy to selected level. How do  automate this feature but the challenge is speed. The objective is to reduce the time to do so.

 

Thanks & Regards

Thanks & Regards

Sanjay Pandey(BIM[Revit] Developer)

0 Likes
810 Views
7 Replies
Replies (7)
Message 2 of 8

Mustafa.Salaheldin
Collaborator
Collaborator

Please refer to my solution in the following topic:

http://forums.autodesk.com/t5/revit-api/a-question-about-suppressing-warning-messages-in-revit/m-p/6...

 

Tell me if it satisfies your need or you may need a little modification.


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes
Message 3 of 8

Anonymous
Not applicable

Dear mustafa,

 

I think I didn't chose right words for the problem. So I will rephrase:

 

say for example I have a few walls doors windows etc on level  1.

 

now I select them all and copy them

 

now from the paste menu I select paste - aligned to selected levels.

 

choose all other levels

 

and click ok.

The selected elements gets copied to all the selected levels.

 

All This was manual part.

 

What I am trying to achieve:

 

Create a tool using copies the elements to selected levels in half the time.

 

Thanks & Regards

Sanjay Pandey(BIM[Revit] Developer)

Message 4 of 8

Mustafa.Salaheldin
Collaborator
Collaborator

Ok now I got it.

It is so simple.

 

First prompt the user to select the elements to be copied using Selection.PickObjects Method.

Then use a filter to collect all the views you want to copy the elements to.

Iterate through the views and apply the ElementTransformUtils.CopyElements Method (View, ICollection<(Of <(<'ElementId>)>)>, View, Transform, CopyPasteOptions).

 

Note: all the above steps must be done from 2D view and to 2D views.

If this reply satisfies your answer don't forget to mark it as a reply.

 

Cheers

 


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes
Message 5 of 8

Anonymous
Not applicable

Dear mustafa,

 

Is not same as copy and paste - aligned to selected levels.

 

My objective here is to reduce time by minimum half the time doing it manually

 

Thanks & Regards

Sanjay Pandey(BIM[Revit] Developer)

0 Likes
Message 6 of 8

Mustafa.Salaheldin
Collaborator
Collaborator

Sorry I'm bit confused, can you please clarify more?


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes
Message 7 of 8

Anonymous
Not applicable
Say for example manually copy paste to all levels take 10 mins. I want to
write code which does in 5 mins
0 Likes
Message 8 of 8

Mustafa.Salaheldin
Collaborator
Collaborator

I see, no I guess this is out of our scope Smiley Very Happy


¯\_(ツ)_/¯
Let it work like a charm.

Mustafa Salaheldin


EESignature




Digital Integration Manager, DuPod

Facebook | Twitter | LinkedIn

0 Likes