Invalid operation exception

Invalid operation exception

Mohamed.E.Salem
Advocate Advocate
2,090 Views
5 Replies
Message 1 of 6

Invalid operation exception

Mohamed.E.Salem
Advocate
Advocate

hi all,

 I face a problem . I tried to use bottom to select familyinstance (column ) then make some changes . the message appears. what should i do ? (Revit 2019.1)

Capture.PNGThank you and best regards,

Salem

 

0 Likes
Accepted solutions (1)
2,091 Views
5 Replies
Replies (5)
Message 2 of 6

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Mohamed.E.Salem,

Are you trying to pick multiple objects using PickObject??

PickObject method will help to pick only single object so try using PickObjects Method.

 

try using below link

PickObjects

 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 6

Mohamed.E.Salem
Advocate
Advocate

hi   @naveen.kumar.t

only one object

 

0 Likes
Message 4 of 6

Mohamed.E.Salem
Advocate
Advocate

I tried to trace my code . I found that after this line2.PNG

I should select the object from Revit UserInterface

but when i came back to revit I can't make any selection because the displayForm poped up

Capture.PNG

that explain null exception 

what should i do?

0 Likes
Message 5 of 6

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution
0 Likes
Message 6 of 6

Mohamed.E.Salem
Advocate
Advocate

Hi @naveen.kumar.t

I tried to use modeless form But i found that Revit API deals with modeless form as external application runing outside API context so i can't make transaction

Capture.PNG

what should i do ?

thank you In advance

0 Likes