Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Elements Lost on Import' dialog box - Could not find suitable button to click #103

Open
neilsonandrew opened this issue Dec 8, 2022 · 2 comments

Comments

@neilsonandrew
Copy link

RBP gets stuck in endless loop after encountering 'Elements Lost on Import' dialog box.

Revit 2021.1.7
Dialog Title:
Elements lost on Import
Dialog Text:
Some elements were lost during import. ActiveX and some proprietary components cannot be imported.
Try exploding the file in AutoCAD, or setting PROXYGRAPICS to 1.
Dialog Button:
Close

RBP 1.9.0
Progress Feedback:
'Elements Lost on Import' dialog box detected
WARNING: Could not find suitable button to click for 'Elements Lost on Import' dialog box!
Button: 'Close'

@petersmithfromengland
Copy link
Contributor

Hi @neilsonandrew

Can you provide some information about your environment? Type & spec of machine, hotfix of Revit, any addins specific to 2021 etc
Would you be able to try doing this again and when it fails take a copy of your latest journal file and upload that here? Simiarly would you be able to provide your RBP logs?
What happens if you try the same process outside of RBP?
Have you tried the suggestions of the dialog text at all?

Cheers, Pete

@habdirad
Copy link

I think the following piece in the revit_dialog_detection.py file should be fixed, to pick the Close button

elif enabledDialog.WindowText == ELEMENTS_LOST_ON_IMPORT_TITLE and len(buttons) == 1:
                output()
                output("'" + enabledDialog.WindowText + "' dialog box detected.")
                DismissRevitDialogBox(enabledDialog.WindowText, buttons, CERRAR_BUTTON_TEXT, output)

change to

elif enabledDialog.WindowText == ELEMENTS_LOST_ON_IMPORT_TITLE and len(buttons) == 1:
                output()
                output("'" + enabledDialog.WindowText + "' dialog box detected.")
                DismissRevitDialogBox(enabledDialog.WindowText, buttons, CLOSE_BUTTON_TEXT, output)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants