Home Forums GENERAL API OptiSystem (Interface) Reply To: API OptiSystem (Interface)

#43797
Profile Photo
Be Asmaa
Participant

hello Marc Verreault,
thank you very much for your quick reply,

i Use OptiSystem Version 9.0
When i use Computer with Windows7 ( 32bits ), the project Matlabcalloptisystem.osd works perfectly.
but when i use OptiSytem windows7 (64bits) he display this error even if i use the Code that you gave me.

No appropriate method, property, or field GetLayoutMgr for class
Interface.optisystem_application.GetActiveDocument

I noticed a difference between the two after running the program,

With Windows7(32)
After execution the line “Document = optsys.GetActiveDocument”

Interface.SDKOptiSystem_application_Design_1.0_Type_Library_ISDKOptiSystemDoc

But with windows7(64bits)
After execution the line “Document = optsys.GetActiveDocument”
Interface.optisystem_application.GetActiveDocument

and in the second line “LayoutMngr = Document.GetLayoutMgr;” , he display the error
No appropriate method, property, or field GetLayoutMgr for class
Interface.optisystem_application.GetActiveDocument

Regards

Categories