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

Special modal mode for Revit lookup #171

Open
CADBIMDeveloper opened this issue Jun 15, 2023 · 8 comments
Open

Special modal mode for Revit lookup #171

CADBIMDeveloper opened this issue Jun 15, 2023 · 8 comments
Labels
feature request 📬 A request for new changes to improve functionality

Comments

@CADBIMDeveloper
Copy link
Contributor

Hi @jeremytammik @Nice3point2

I'm just thinking about bringing modal mode support back.

Motivation: I'm actively using Iron Python shell for testing and prototyping and earlier I could use RevitLookup together with IPS like:

#do something
lookup(some_object) #execution stops here
#do something else with some_object
lookup(some_object)

Of course I still can print to console or write to file, but it's much less comfortable, requires more time (remember, I'm mainly using it for prototyping)

There is no need to make changes in the UI, just have some utilities in DLL that can be used externally.

I can do it by myselft when I have time if someone else needs this :-)

What do you think?

@Nice3point Nice3point added the feature request 📬 A request for new changes to improve functionality label Jun 15, 2023
@Nice3point
Copy link
Collaborator

Nice3point commented Jun 15, 2023

just have some utilities in DLL that can be used externally

Hi Alexander @CADBIMDeveloper, I still don't understand what functions we are talking about, can you clarify?

@jeremytammik
Copy link
Owner

Hi Alexander, your use case makes total sense. So you mean a modal Python lookup form that opops uop and remains, and your Python code sits ands waits until it is closed again. Is the lookup method non-modal now? Does RevitLookup not have any modal forms at all anymore? Everything modeless now? Sure, go ahead, minimal, keep it simple.

@CADBIMDeveloper
Copy link
Contributor Author

@Nice3point , I mean to have some public classes with methods that could be called by external code accepting object(s) to snoop which will run RevitLookup in modal mode.

@jeremytammik , I haven't dive into the code deeply yet, but it looks that everything is modalless now

@CADBIMDeveloper
Copy link
Contributor Author

So you mean a modal Python lookup form that opops uop and remains, and your Python code sits ands waits until it is closed again.

@jeremytammik , that's exactly what I want to have :-)

@chuongmep
Copy link
Contributor

@CADBIMDeveloper
Copy link
Contributor Author

No, I don't want this. The PR you mentioned is a) outdated b) fixed only the API changes for RevitLookup access for the date of that PR

@Nice3point Nice3point mentioned this issue Jun 16, 2023
4 tasks
@Nice3point
Copy link
Collaborator

Let me know if you need to add anything else

@CADBIMDeveloper
Copy link
Contributor Author

Now it's useless, or I don't see something.

The idea was the following:

Some external code asks RevitLookup to snoop something, let's say some element. Then RevitLookup pops up it's window in dialog modal mode giving the opportunity to explore it. When the user closes the dialog, external code continue it's execution, potentially calling RevitLookup again

@Nice3point Nice3point reopened this Jul 5, 2023
@Nice3point Nice3point added this to the 2024.0.9 milestone Jul 5, 2023
@Nice3point Nice3point removed this from the 2024.0.9 milestone Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 📬 A request for new changes to improve functionality
Projects
None yet
Development

No branches or pull requests

4 participants