Select and click - do something

Select and click - do something

sonicer
Collaborator Collaborator
580 Views
1 Reply
Message 1 of 2

Select and click - do something

sonicer
Collaborator
Collaborator

Is it possible with revit api example select wall and then click anywhere on floor plan and call function that move this wall to mouse clicked position?

 

thx.

0 Likes
Accepted solutions (1)
581 Views
1 Reply
Reply (1)
Message 2 of 2

architect.bim
Collaborator
Collaborator
Accepted solution

Hi!

I think it is probably possible. Explore methods of Selection class. PickElementsByRectangle or PickObject methods will help you to select necessary objects. Pickpoint method - to specify new wall location.

 

For example in the picture below I use these methods to select doors an specify location point of dimension line:

210408_1307_001'.gif

 


Maxim Stepannikov | Architect, BIM Manager, Instructor