i'm interesting to call and load the library from IronPython, however it's not succeed. Any hints and suggestion?
thanks in advance,
`
import clr
clr.AddReference("IxMilia.Dxf.dll")
import System
clr.AddReferenceByPartialName("System.Drawing")
from IxMilia.Dxf import *
ent = IxMilia.Dxf.Entities ()
dxfFile = DxfFile()
dxfFile.ent.Add(DxfLine(DxfPoint(0,0,0),DxfPoint(50,50,0)))
dxfFile.Save("test.dxf")
`
error messaes shown,
`
C:\Program Files\IronPython 2.7\ipyw -u "test9.py"
Traceback (most recent call last):
File "test9.py", line 8, in
NameError: global name 'IxMilia' is not defined
Exit code: 1
`
Hi,
i'm interesting to call and load the library from IronPython, however it's not succeed. Any hints and suggestion?
thanks in advance,
` import clr clr.AddReference("IxMilia.Dxf.dll")
import System clr.AddReferenceByPartialName("System.Drawing") from IxMilia.Dxf import *
ent = IxMilia.Dxf.Entities () dxfFile = DxfFile() dxfFile.ent.Add(DxfLine(DxfPoint(0,0,0),DxfPoint(50,50,0))) dxfFile.Save("test.dxf") `
error messaes shown,
`