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

Could you please provide a little example for CLI /C++CLR? #30

Open
L-u1 opened this issue Oct 18, 2024 · 2 comments
Open

Could you please provide a little example for CLI /C++CLR? #30

L-u1 opened this issue Oct 18, 2024 · 2 comments

Comments

@L-u1
Copy link

L-u1 commented Oct 18, 2024

Hi!

thank you for the work done! I do believe RunAsync can work in CLI /C++CLR good as well?

Could you please provide a little piece of code example how could I launch function inside RevitTask::RunAsync?

Thank you,
Lu

@KennanChan
Copy link
Owner

KennanChan commented Oct 18, 2024

Yes I think it can be used in C++/CLI, because they share the same CLR.

Problem is that I get little experience in C++/CLI, which can be challenging to me to give u an example.

You may google something like "call .net static method in c++/cli" to get instructed.

I will give a try to create a demo. Not a promise and I will notice you when I get it done.

@L-u1
Copy link
Author

L-u1 commented Oct 21, 2024

Good morning,

thats would be great!
At the moment I will try inherit from IExternalEventHandler, but AFAIK, RunAsync is the wrapper for IExternalEventHandler.
Thank you in advance!

regards
Lu

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

No branches or pull requests

2 participants