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: 

Pick Two Face consecutively problem

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
194 Views, 0 Replies

Pick Two Face consecutively problem

When I pick the first face, an error is thrown saying "The user aborted the pick operation." If I put MessageBox in between picking the first and second face, there are  no errors. Why is this so? Thanks!

 

 

Error occur when i write the code as below:

Reference pickedRef01 = sel.PickObject(ObjectType.Face, "Please select a Face");

Reference pickedRef02 = sel.PickObject(ObjectType.Face, "Please select a Face");

 

 

Reference pickedRef01 = sel.PickObject(ObjectType.Face, "Please select a Face");

MessageBox.Show("Select Face Please");

Reference pickedRef02 = sel.PickObject(ObjectType.Face, "Please select a Face");

 

0 REPLIES 0

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

Post to forums  

Forma Design Contest


Rail Community