• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > HFSS > HFSS help > IProgressMonitor Abstract Class

HFSS15: IProgressMonitor Abstract Class

录入:edatop.com     点击:

The object of this class is a progress monitor. It is used to display calculations progress in UI and check is the user has requested an abort of the computation.

When displayed in the application, each progress message has four items:

• A task name

• A sub-task name

• The progress amount

• A button to abort the task in progress.

All of this functionality and abort interaction is achieved using the following functions.

• SetTaskName (string taskName):

• SetSubTaskName (string subTaskName)

• BeginTask (string name)

• SetTaskProgressPercentage(int progressPercent)

• CheckForAbort(): If the quantities being generated are computationally expensive, the UDO author can periodically call this method and then call EndTask with Fail and return False.

• EndTask (bool passFail)

Example:

progMon.BeginTask("Process DQS")

progMon.SetSubTaskName("Compute UI segments")

progMon.SetTaskProgressPercentage(33)

progMon.SetSubTaskName("Compute the rest")

progMon.SetTaskProgressPercentage(100)

progMon.EndTask(True)

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

上一篇:INumberProperty Abstract class
下一篇:Keyboard Shortcuts for HFSS General Purposes

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

  网站地图