Thanks to visit codestin.com
Credit goes to github.com

Skip to content

COM not working as expected #675

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

Closed
tymokvo opened this issue May 22, 2018 · 1 comment
Closed

COM not working as expected #675

tymokvo opened this issue May 22, 2018 · 1 comment

Comments

@tymokvo
Copy link

tymokvo commented May 22, 2018

Environment

  • Pythonnet version: 2.3.0
  • Python version: 3.6
  • Operating System: Win10

Details

  • Trying to get access to a dynamic typed System.__ComObject
  • This is also specifically with the application Rhinoceros 6 which is using a C++ app that is hosted on .NET so it is a very specific use case
  • However, it does work in IronPython and in C#
import clr
import System
apptype = System.Type.GetTypeFromProgID("Rhino.Application")
rhino = System.Activator.CreateInstance(apptype)
rhino.Visible = 1
plugin = rhino.RunScript("_-SampleCsRhinoCommand", 0)

iron_vs_dotnet

Also seems odd that rhino.Visible = 1 does not throw an AttributeError, but also doesn't make the application visible.

Thanks!

@den-run-ai
Copy link
Contributor

this is tracked here:

#260

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