ImportANF

Imports an ANF file into a new project. For older ANFv2 files, use ImportANFv2.

UI Access File > Import > ANF.
Parameters
Name Type Description
<ANFfilename> String Full path of ANF file.
Return Value

None.

 

Python Syntax ImportANF(<ANFfilename>)
Python Example

oDesktop.RestoreWindow()

Set oTool = oDesktop.GetTool('ImportExport')

oTool.ImportANF('C:\\AnsTranslator\\results\\package4.anf')

 

VB Syntax ImportANF <ANFfilename>
VB Example

Dim oAnsoftApp

Dim oDesktop

Dim oProject

Dim oDesign

Dim oEditor

Dim oModule

Dim oProjects

Dim omachine

Dim oTool

Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")

Set oDesktop = oAnsoftApp.GetAppDesktop()

oDesktop.RestoreWindow

Set oTool = oDesktop.GetTool("ImportExport")

oTool.ImportANF("%UserProfile%\Documents\HFSS Examples\package.anf")