EasyManua.ls Logo

Newport XPS-D - How to Use XPS.NET Assembly from Ironpython; Add Reference to.NET Assembly; Ironpython Code Source

Newport XPS-D
722 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
XPS Unified Programmer’s Manual
Call “XPS” functions (Use a .Net Invoke Node to select a XPS method):
Close XPS connection (Use a .Net Invoke Node to select the XPS method
“CloseInstrument”):
Close .NET Reference:
3.5 How to Use XPS .NET Assembly from IronPython?
Refer to IronPython for more information on how to load and use a .NET assembly
depending on your IronPython version.
3.5.1 Add Reference to .NET Assembly
Add Newport.XPS.CommandInterface.dll in References of your script:
x86:
import sys
sys.path.append(r'C:\Windows\Microsoft.NET\assembly\GAC_32\Newport.XPS.Comma
ndInterface\v4.0_1.0.0.0__9a267756cf640dcf')
x64:
import sys
sys.path.append(r'C:\Windows\Microsoft.NET\assembly\GAC_64\Newport.XPS.Comma
ndInterface\v4.0_1.0.0.0__9a267756cf640dcf')
3.5.2 IronPython Code Source
IronPython Header
# The CLR module provide functions for interacting with the underlying
# .NET runtime
import clr
# Add reference to assembly and import names from namespace (IronPython)
clr.AddReferenceToFile("Newport.XPS.CommandInterface.dll") from
CommandInterfaceXPS import *
EDH0373En1023 01/18 8

Table of Contents

Other manuals for Newport XPS-D

Related product manuals