• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > HFSS > HFSS help > Using additional .NET assemblies

HFSS15: Using additional .NET assemblies

录入:edatop.com     点击:

Because the UDO functionality uses IronPython, we have access to the full .NET eco system. If needed, any subset of the UDO functionality can be implemented in any .NET language and used by the UDO script. There are simple rules to follow to achieve this.

1. Build your .NET assembly for .NET 2.0 runtime.

2. Drop the built assembly in any Lib directory upstream of the UDO script location: that is, if you have your UDO script in C:UsersxPersonalLibUserDefinedOutputsabcmyudo.py and have a .NET assembly called com.Acme.UDOLib You can keep the .NET assembly under

• UserDefinedOutputsLib,

• UserDefinedOutputs aLib,

• UserDefinedOutputs abLib

• UserDefinedOutputsabcLib

3. Add the following line to your python script

• Import clr

• clr.AddReference(“com.Acme.UDOLib”)

• import com.Acme.UDOLib –or-- from com.Acme.UDOLib import * etc

If for some reason you cannot place the .NET assemblies into a Lib directory under UserDefinedOutputs, you need to do a couple more steps before step 3 listed above.

Import sys

sys.path.append(“full path to your .NET assembly location”)

HFSS 学习培训课程套装,专家讲解,视频教学,帮助您全面系统地学习掌握HFSS

上一篇:Using Absolute Coordinates
下一篇:Using .NET Collection Classes and Interfaces in Python Scripts

HFSS视频培训课程推荐详情>>
HFSS教程推荐

  网站地图