Arbortext IsoDraw > Macro Language Reference > Object Data Types > Application Object - Data Exchange Preferences > Import with ProductView Adapters
  
Import with ProductView Adapters
Applies to Arbortext IsoDraw CADprocess 7.1 F000 and later.
app.adapterCount
Returns and sets the number of successfully installed ProductView (PV) adapters in Arbortext IsoDraw CADprocess as integer. This property is read-only.
app.adapters["name" | "index"]
The properties of a ProductView (PV) adapter are accessed by PV adapter name or index number. The name of the folder that contains the PV adapter preferences file, pvad_xlte.prf, is the same as the PV adapter name. You cannot assign the PV adapter itself to a variable, but you can use the exists() function to verify that it is installed and configured correctly.
# Examples:

MACRO configureJTadapter
# Overwrite PV Adapter file configuration of JT adapter
IF ( exists( app.adapters["JT"] ) )
# only if adapter is installed...
app.adapters["JT"].showDialog = false
app.adapters["JT"].selectGroups = false
app.adapters["JT"].createInfo = true
app.adapters["JT"].hsType = 1
app.adapters["JT"].scale = 0.1
END IF
END MACRO

MACRO ListAdapters
# Write list of installed adapters to external file
DEFINE n AS Integer
DEFINE i AS Integer
DEFINE sOut AS String

sOut = "D:\temp\AdaptersList.txt"
FNew sOut
i = app.adapterCount
WHILE (i>0)
FWRITE sOut "-------------------------------------------------------------------------------"
FWRITE sOut "Name : "+app.adapters[i].name
FWRITE sOut "Text : "+app.adapters[i].descriptiveText
FWRITE sOut "Extension : "+app.adapters[i].Extension
FWRITE sOut "Path : "+app.adapters[i].path
FWRITE sOut "Executable : "+app.adapters[i].executable
FWRITE sOut "Recipe : "+app.adapters[i].recipe
i = i-1
END WHILE
END MACRO
app.adapters[].showDialog
Returns and sets if the Import dialog box for the PV adapter is shown. Type is boolean.
app.adapters["JT"].showDialog = true
app.adapters[].selectGroups
Returns and sets if the assemblies should be selected for this PV adapter as boolean.
app.adapters["JT"].selectGroups = false
app.adapters[].createInfo
Returns and sets if the object information for the assemblies should be created for this PV adapter as boolean.
app.adapters["JT"].createInfo = false
app.adapters[].hsType
Returns and sets which hotspot type is created for the assemblies for this PV adapter as boolean.
0
no hotspot
1
lines of object
app.adapters["JT"].hsType = 1
app.adapters[].scale
Returns and sets the import scale for this adapter as float. 1 stands for 100% and 0.1 for 10%.
app.adapters["JT"].scale = 0.5
app.adapters[].descriptiveText
Returns the file extensions for this adapter as string. This property is read-only.
MESSAGE app.adapters[1].extension
app.adapters[].extension
Returns the list of file extensions for this adapter as string with a maximum length of 80 characters. This property is read-only
MESSAGE app.adapters[1].extension
app.adapters[].name
Returns the name for this adapter as string. The name of the adapter is the same as the folder name where the file pvad_xlte.prf is installed.
MESSAGE app.adapters[1].name
app.adapters[].path
Returns the installation path for this adapter as string. This property is read-only.
MESSAGE app.adapters[1].path
app.adapters[].executable
Returns the path and filename of the adapters executable as string. This property is read-only.
MESSAGE getFileName(app.adapters[1].executable)
app.adapters[].recipe
Returns the path and name of the adapters recipe file as string. This property is read-only.
MESSAGE getFileName(app.adapters[1].recipe)