Created: February 16, 2023 | Updated: February 16, 2023
| Applies to version: 22
Note
The features available depend on your Altium product access level. Compare features included in the various levels of Altium Designer Software Subscription and functionality delivered through applications provided by the Altium 365 platform.
If you don’t see a discussed feature in your software, contact Altium Sales to find out more.
Please note that this documentation was last updated for an older version of Altium Designer. While many of the principles and approaches will remain the same, be aware that interfaces, objects, methods, properties, and the like will have changed since then, and will not reflect the entirety of those found in later versions of the software.
Overview
The IIntegratedLibraryManager interface represents the integrated library manager that manages schematic components and its models from installed libraries in Altium Designer.
Invoke the IntegratedLibraryManager function to fetch the IIntegratedLibraryManager interface.
Integrated Library Manager Methods and Properties Table
See also Examples\Scripts\DXP_Scripts\ folder of Altium Designer installation
Integrated Library Manager Methods
AddRemoveLibraries method
(IIntegratedLibraryManager interface) Syntax Procedure AddRemoveLibraries; Description
This method invokes the Available Libraries dialog with a list of installed libraries if any and their activated, path and type values. Example
(IIntegratedLibraryManager interface) Syntax Function AvailableLibraryType (LibraryIndex : Integer) : TLibraryType; Description
The AvailableLibraryType function determines what type the indexed library is. Note, the first installed library in the Available Libraries dialog is indexed zero (0). Notes
An available library is one of the libraries on the Installed, Project and Search path tabs within the Available Libraries dialog.
An installed library appears in the Installed tab of the Available Libraries dialog. TLibraryType = (eLibIntegrated, eLibSource, eLibDatafile, eLibDatabase, eLibNone, eLibQuery, eLibDesignItems); Example
See also
IIntegratedLibraryManager interface
TLibraryType type
AvailableLibraryPath method
(IIntegratedLibraryManager interface) Syntax Function AvailableLibraryPath (LibraryIndex : Integer) : WideString; Description
The AvailableLibraryPath function retrieves the file path of the indexed library in the Available Libraries dialog. Note, the first installed library in the Available Libraries dialog is indexed zero (0).
Notes
An available library is one of the libraries on the Installed, Project and Search path tabs within the Available Libraries dialog.
An installed library appears in the Installed tab of the Available Libraries dialog. Example
(IIntegratedLibraryManager interface) Syntax Function AvailableLibraryCount : Integer; Description
The AvailableLibraryCount function determines the number of available libraries. Note, the first installed library in the Available Libraries dialog is indexed zero (0).
Notes
An available library is one of the libraries on the Installed, Project and Search path tabs within the Available Libraries dialog.
An installed library appears in the Installed tab of the Available Libraries dialog. Example
(IIntegratedLibraryManager interface) Syntax Procedure BrowseForComponentAndPart (ALibReference : PChar;ASCHLibraryPath : PChar;SelModelName : PChar;SelModelLib : PChar;LibPath : PChar;ModelType : PChar;Var PartID : Integer); Description
This BrowseForComponentAndPart procedure invokes the Browse for Parts dialog. Example See also
IIntegratedLibraryManager interface
BrowseForComponent method
(IIntegratedLibraryManager interface) Syntax Procedure BrowseForComponent (ALibReference : PChar; ASCHLibraryPath : PChar; SelModelName : PChar; SelModelLib : PChar; LibPath : PChar; ModelType : PChar); Description
This BrowseForDataFile procedure invokes the Browse for Components dialog. Example See also
IIntegratedLibraryManager interface
BrowseForComponentAndpartCheckDBLibs method
(IIntegratedLibraryManager interface) Syntax Procedure BrowseForComponentAndPartCheckDBLibs (ALibReference : PChar; ASCHLibraryPath : PChar; SelModelName : PChar; SelModelLib : PChar; LibPath : PChar; ModelType : PChar; ADatabaseTableName : PChar; ADatabaseKeys : PChar; Var PartID : Integer); Description
This BrowseForComponentAndPartCheckDBLibs procedure invokes the Browse for Components dialog. Example See also
IIntegratedLibraryManager interface
ComponentHasModelOfType method
(IIntegratedLibraryManager interface) Syntax Function ComponentHasModelOfType (LibraryPath : WideString; ComponentIndex : Integer; AModelType : WideString) : Boolean; Description
This function checks if this indexed component from the specified library has this model type. Model Types include:
(IIntegratedLibraryManager interface) Syntax Procedure CreateIntegratedLibrary (AProject : IProject; AnOutputPath : WideString; Install : Boolean); Description
This CreateIntegratedLibrary procedure creates an integrated library from a project into the specified AnOutputPath path and depending on the Install parameter is installed in the Available Libraries dialog. Example
(IIntegratedLibraryManager interface) Syntax Procedure ExtractSourcesToPath (ALibraryPath : WideString ;ADestinationPath : WideString); Description
This ExtractSources procedure extracts the source files such as PCBLIB and PCB3DLIb files to the destination path (ADestinationPath parameter) from the Integrated Library specified by its ALibraryPath parameter. Example
See example for ExtractSources method. See also
IIntegratedLibraryManager interface
ExtractSources method
(IIntegratedLibraryManager interface) Syntax Procedure ExtractSources (ALibraryPath : WideString); Description
This ExtractSources procedure extracts the source files such as PCBLIB and PCB3DLIb files from the Integrated Library specified by its ALibraryPath parameter. Example
(IIntegratedLibraryManager interface) Syntax Function FindComponentDisplayPath(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADesignItemID : WideString) : WideString; Description
The function returns the full path of the library that the supplied component is part of. Example
(IIntegratedLibraryManager interface) Syntax Function FindComponentLibraryPath(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADesignItemID : WideString) : WideString; Description
The function returns the path of the library the component is part of.
The ALibIdentifierKind parameter denotes which type of library the component is from. TLibIdentifierKind = (eLibIdentifierKind_Any, eLibIdentifierKind_NameNoType, eLibIdentifierKind_NameWithType, eLibIdentifierKind_FullPath);
The ALIbraryIdentifier parameter is the library identifier string that the component is associated with.
The ADesignItemID parameter is the symbol reference (library reference) of the component from a Schematic or Integrated Library or an unique part number from a record within a table of a Database. Example
See also
IIntegratedLibraryManager interface
TLibIdentifierKind type SimModelsOfComponents script from \Examples\Scripts\DelphiScript Scripts\Sch folder of the Altium Designer installation
FindComponentSymbol method
(IIntegratedLibraryManager interface) Syntax Function FindComponentSymbol(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADesignItemID : WideString; Out ASymbolLibraryPath : WideString; Out ASymbolReference : WideString) : Boolean; Description
The function validates whether if the component symbol is available or not dependent on the supplied parameters.
The ALibIdentifierKind parameter denotes which type of library the component is from. TLibIdentifierKind = (eLibIdentifierKind_Any, eLibIdentifierKind_NameNoType, eLibIdentifierKind_NameWithType, eLibIdentifierKind_FullPath);
The ALibraryIdentifier parameter is the library identifier string that the component is associated with.
The ADesignItemID parameter is the symbol reference (library reference) of the component from a Schematic or Integrated Library or an unique part number from a record within a table of a Database.
The ASymbolLibraryPath is the library.
The ASymbolReference is the name of the component symbol. Example
IfIntegratedLibraryManager.FindComponentSymbol(APart.LibIdentifierKind, APart.LibraryIdentifier, APart.DesignItemID, SymbolLibraryPath, SymbolReference) Then
02
Begin
03
NewSymbolLibrarypath := SymbolLibrarypath;
04
NewSymbolReference := SymbolReference;
05
End
06
Else
07
Begin
08
NewSymbolLibrarypath := '';
09
NewSymbolReference := '';
10
End;
See also
IIntegratedLibraryManager interface
FindDatafileEntityDatafilePath method
(IIntegratedLibraryManager interface) Syntax Function FindDatafileEntityDatafilePath(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADatafileEntityName : WideString; Const ADatafileType : WideString; AUseIntAndDBLibrary : Boolean) : WideString; Description
The function returns the path of the library the component is part of.
The ALibIdentifierKind parameter denotes which type of library the component is from. TLibIdentifierKind = (eLibIdentifierKind_Any, eLibIdentifierKind_NameNoType, eLibIdentifierKind_NameWithType, eLibIdentifierKind_FullPath);
The ALibraryIdentifier parameter is the library identifier string that the component is associated with.
The ADatafileEntityName parameter
The ADatafileType parameter
The AUseIntAndDBLibrary parameter Example
See also
IIntegratedLibraryManager interface
TLibIdentifierKind type SimModelsOfComponents script from \Examples\Scripts\DelphiScript Scripts\Sch folder of the Altium Designer installation
FindDatafileEntitySourceDatafilePath
(IIntegratedLibraryManager interface) Syntax Function FindDatafileEntitySourceDatafilePath(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADatafileEntityName : WideString; Const ADatafileType : WideString; AUseIntAndDBLibrary : Boolean) : WideString; Description
This function returns the path of the data file in library . Example
(IIntegratedLibraryManager interface) Syntax Description See also
IIntegratedLibraryManager interface
FindDatafileEntityLibraryPath
(IIntegratedLibraryManager interface) Syntax Description See also
IIntegratedLibraryManager interface
FindDatafileInStandardLibs method
(IIntegratedLibraryManager interface) Syntax Function FindDatafileInStandardLibs (ADatafileEntityName : WideString; ADatafileType : WideString; ADatafileLocation : WideString; ForComponentInstance : Boolean; Var FoundInLibraryPath : WideString) : WideString; Description
This function returns the path of the data file for the specified model in an integrated library. You need to specify the ADataFileEntityName parameter which is the footprint name, 3D model name, Sim name or SI name.
The ADataFileType parameter denotes the model type represented by the datafiletype (PCB, PCB3DLIB, SIM, SI).
The ADatafileLocation parameter is optional.
The ForComponentInstance is a Boolean and is true if it is in an integrated library, false otherwise.
The FoundInLibraryPath parameter is a returnable value and returns the location of the data file if all the supplied parameters are valid. Example
(IIntegratedLibraryManager interface) Syntax Description See also
IIntegratedLibraryManager interface
FindModelLibraryPath
(IIntegratedLibraryManager interface) Syntax Function FindModelLibraryPath(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADesignItemID : WideString; Const AModelName : WideString; Const AModelType : WideString) : WideString; Description
The function returns the path of the library the model is part of.
The ALibIdentifierKind parameter denotes which type of library the component is from. TLibIdentifierKind = (eLibIdentifierKind_Any, eLibIdentifierKind_NameNoType, eLibIdentifierKind_NameWithType, eLibIdentifierKind_FullPath);
The ALIbraryIdentifier parameter is the library identifier string that the component is associated with.
The ADesignItemID parameter is the symbol reference (library reference) of the component from a Schematic or Integrated Library or an unique part number from a record within a table of a Database.
The AModelName parameter is the name of the implementation (model) linked to this component.
The AModelType parameter is the model type of the implementation (model) linked to this component. Example
See also
IIntegratedLibraryManager interface
TLibIdentifierKind type SimModelsOfComponents script from \Examples\Scripts\DelphiScript Scripts\Sch folder of the Altium Designer installation
FindLibraryInformation method
(IIntegratedLibraryManager interface) Syntax Function FindLibraryInformation(ALibIdentifierKind : TLibIdentifierKind; Const ALibraryIdentifier : WideString; Const ADesignItemID : WideString; Out ALibraryPath : WideString; Out ADBTableName : WideString) : Boolean; Description
The function validates the existence of the library.
The ALibIdentifierKind parameter denotes which type of library the component is from. TLibIdentifierKind = (eLibIdentifierKind_Any, eLibIdentifierKind_NameNoType, eLibIdentifierKind_NameWithType, eLibIdentifierKind_FullPath);
The ALIbraryIdentifier parameter is the library identifier string that the component is associated with. Normally a path to a library.
The ADesignItemID parameter is the symbol reference (library reference) of the component from a Schematic or Integrated Library or an unique part number from a record within a table of a Database.
The ALibraryPath parameter is returned for the valid design item of a component.
The ADBTableName is returned if a component is from a database. Example If Not IntegratedLibraryManager.FindLibraryInformation(eLibIdentifierKind_NameWithType, ALibraryIdentifier, ADesignItemID, ALibraryPath, Path, DBTableName) Then Path := ''; See also
IIntegratedLibraryManager interface
GetComponentLocation method
(IIntegratedLibraryManager interface) Syntax Function GetComponentLocation (ALibraryName : WideString; AComponentName : WideString; Var FoundInLibraryPath : WideString) : WideString; Description
This GetComponentLocation returns the path of the specified component name within the specified library. Example
(IIntegratedLibraryManager interface) Syntax Function GetComponentDatafileLocation(DatafileIndex : Integer; AModelName : WideString; AModelType : WideString; AComponentName : WideString; AComponentLibraryName : WideString; Var FoundInLibraryPath : WideString) : WideString; Description
This GetComponentDatafileLocation function obtains the location of the datafile for the component with the specified data file index, model name and its model type, component name and the full library. The result is returned in the FoundInLibraryPath parameter or by the function itself. Example
(IIntegratedLibraryManager interface) Syntax Function GetModelType (LibraryPath : WideString; ComponentIndex : Integer; ModelIndex : Integer) : IModelType; Description
This function retrieves the model type for the indexed component within the specified library. The first indexed component is 0. Example
See also
IIntegratedLibraryManager interface
IModelType interface
GetModelName method
GetModelCount method
GetModelName method
(IIntegratedLibraryManager interface) Syntax Function GetModelName (LibraryPath : WideString; ComponentIndex : Integer; ModelIndex : Integer) : WideString; Description
This function retrieves the model name for the indexed component within the specified library. The first indexed component is 0. Example
See also
IIntegratedLibraryManager interface
GetModelCount method
GetModelType method
GetModelCount method
(IIntegratedLibraryManager interface) Syntax Function GetModelCount (LibraryPath : WideString; ComponentIndex : Integer) : Integer; Description
This function retrieves the model count for the indexed component within the specified library. The first indexed component is 0. Example
// when ComponentIndex = 0, Component = 'XC3S100E-4TQ144I';
5
Showmessage(IntMan.GetModelName(LibraryPath, 0)); //3 models for this component
See also
IIntegratedLibraryManager interface
GetModelName method
GetModelType method
GetDatafilePath method
(IIntegratedLibraryManager interface) Syntax Function GetDatafilePath (LibraryPath : WideString; ComponentIndex : Integer; ModelIndex : Integer; DatafileIndex : Integer) : WideString; Description
This function gets datafile path for the specified component, its indexed model and its indexed datafile in the specified library path. Remember first index is 0. Example See also
IIntegratedLibraryManager interface
GetDatafileEntityCount method
(IIntegratedLibraryManager interface) Syntax Function GetDatafileEntityCount (LibraryPath : WideString; ComponentIndex : Integer; ModelIndex : Integer) : Integer; Description
This function gets datafile entity count for the specified component and its indexed model in the specified library path. Remember first index is 0. Example
// indexed component is I and 0 is the first model for the component.
See also
IIntegratedLibraryManager interface
GetComponentName method
(IIntegratedLibraryManager interface) Syntax Function GetComponentName (LibraryPath : WideString; ComponentIndex : Integer) : WideString; Description
This function retrieves the name for the indexed component within the specified integrated library. Remember first index is 0. Example
S := S + ' '+ Intman.GetComponentName (AvailLibpath,I);
10
11
ShowMessage(s);
See also
IIntegratedLibraryManager interface
GetComponentCount method
(IIntegratedLibraryManager interface) Syntax Function GetComponentCount (LibraryPath : WideString) : Integer; Description
This function retrieves the count of components within the integrated library specified by the LibraryPath parameter. Example
(IIntegratedLibraryManager interface) Syntax Function InstalledLibraryPath (anIndex : Integer) : WideString; Description
This InstalledLibraryPath function retrieves the path of the indexed installed library in Altium Designer. An installed library appears in the installed libraries list box in the Installed tab of the Available Libraries dialog. Example
// do what you want with the OriginalInstalledList
15
OriginalInstalledList.Free;
16
End;
See also
IIntegratedLibraryManager interface
InstalledLibraryCount method
(IIntegratedLibraryManager interface) Syntax Function InstalledLibraryCount : Integer; Description
This InstalledLibraryCount function reports the number of installed libraries as in the Installed tab of the Available Libraries dialog in Altium Designer. Example
See also
IIntegratedLibraryManager interface
InstalledLibraryPath method
AvailableLibraryPath method
AvailableLibraryCount method
InstallLibrary method
(IIntegratedLibraryManager interface) Syntax Procedure InstallLibrary (ALibraryPath : WideString); Description
This procedure installs the library (full path) in the Available Libraries dialog (in the Installed page) in Altium Designer. Example IntegratedLibraryManager.InstallLibrary('C:\Program Files\Altium Designer\Library\Xilinx\Xilinx Spartan-3E.IntLib'); See also
IIntegratedLibraryManager interface
UnInstallLibrary method
MakeCurrentProject method
(IIntegratedLibraryManager interface) Syntax Procedure MakeCurrentProject (AProject : IProject); Description
This procedure makes the current library in the Libraries panel based on the project. Example
(IIntegratedLibraryManager interface) Syntax Function ModelName (AComponentName : WideString; AComponentLibraryName : WideString; AModelType : WideString; AnIndex : Integer) : WideString; Description
This ModelName function returns the name of the model type associated with the component within a specified library. Example
S := S + #13+ IntMan.ModelName (ComponentName, LibraryPath, 'PCBLIB', I);
08
09
ShowMessage(S);
10
// TQ144_L, TQ144_M, TQ144_N
See also
IIntegratedLibraryManager interface
ModelCount method
(IIntegratedLibraryManager interface) Syntax Function ModelCount (AComponentName : WideString; AComponentLibraryName : WideString; AModelType : WideString) : Integer; Description
This ModelCount function returns the number of models of the same type associated with the component within the specified library. The AComponentName parameter is the name of the component. The AComponentLibraryName parameter is the full path of the library the component is from, and the AModelType parameter is the model type you wish to find how many. Example
(IIntegratedLibraryManager interface) Syntax Function PlaceLibraryComponent (ALibReference : PChar; ALibraryPath : PChar; Parameters : PChar) : Boolean; Description
This method places a component from a specified library with Library Reference and Parameters that describe/define this component.
The ALIbReference parameter defines the component. For example ‘Res2’
The ALibraryPath parameter defines the path to the library that the component is from. For example ‘Miscellaneous Devices.IntLib’
The Parameters parameter defines the parameters needed for the component to be able to be placed on the schematic sheet. For example 'ModelType=SIM|ModelParameterName0=Value|ModelParameterValue0=1K|Orientation=1|Location.X=10000000|Location.Y=20000000'. Normally you will need Location.X and Location.Y parameters at the least to be able to place this component on the schematic sheet. Example
(IIntegratedLibraryManager interface) Syntax Procedure UninstallLibrary (ALibraryPath : WideString); Description
This procedure removes the specified library (full path) in the Available Libraries dialog (in the Installed page) in Altium Designer Example IntegratedLibraryManager.UnInstallLibrary('C:\Program Files\Altium Designer\Library\Xilinx\Xilinx Spartan-3E.IntLib'); See also
IIntegratedLibraryManager interface
InstallLibrary method
IModelTypeManager Interface
Copy LinkCopied
Overview
The IModelTypeManager interface represents a repository of available model types in Altium Designer. The Implementation files (*.IMP) from the System folder of Altium Designer Installation are collected and processed by this manager.
Each model that can be linked to a schematic component has a model type and model data file(s).
PCB Model has one model data file – footprints (*.PCBLIB)
PCB 3D Model has one model data file –3D models (*.PCB3DLib)
Signal Integrity Model has one model data file – pin model library.
Simulation has 3 model data files – Model File(*.MDL), Subcircuit file (*.CKT) and SIMetrix Model Library file (*.LB).
This IModelTypeManager interface uses IModelType and IModelDataType interfaces to store different model types and their model data types.
Invoke the ModelTypeManager function to fetch the IModelTypeManager interface. IModelTypeManager Methods and Properties Table
See also
IModelType interface
IModelDataType interface Examples\Scripts\DXP_Scripts\ folder of Altium Designer installation
IModelTypeManager Methods
ModelTypeFromServerName method
(IModelTypeManager interface) Syntax Function ModelTypeFromServerName (AName : PChar) : IModelType; Description
This function returns the model type interface based on the server name. The Server names can be:
(IModelTypeManager interface) Syntax Function ModelTypeFromName (AName : PChar) : IModelType; Description
This function returns the model type interface based on the model type name. The names can be:
(IModelTypeManager interface) Syntax Function ModelTypeCount : Integer; Description
This function returns the number of models supported by Altium Designer. The available models are PCBLIB, SI, SIM and PCB3DLIB types. Example
ShowMessage(ModelTypeMan.ModelTypes[i].Name); // 4 model types supported
11
End;
See also
IModelTypeManager interface
ModelTypeAt method
(IModelTypeManager interface) Syntax Function ModelTypeAt (AnIndex : Integer) : IModelType; Description
This function returns the indexed model type. First model type starts at 0. This method is used by the ModelTypes property. Example
See also
IModelTypeManager interface
ModelTypeCount method
ModelDatafileTypeFromKind method
(IModelTypeManager interface) Syntax Function ModelDatafileTypeFromKind (AKind : PChar) : IModelDatafileType; Description
This function returns the IModelDatafileType based on the datafile kind. The datafile kinds for:
(IModelTypeManager interface) Syntax Function ModelDatafileTypeCount : Integer; Description
This function reports the number of model data file types used by Altium Designer. Since there are four models supported and Simulation model has 3 types while the other 3 models has one type each making 6 in total. Example
Showmessage(IntToStr(ModelTypeMan.ModelDatafileTypeCount)); //6 data file types
9
End;
See also
IModelTypeManager interface
ModelDatafileTypeAt method
(IModelTypeManager interface) Syntax Function ModelDatafileTypeAt (AnIndex : Integer) : IModelDatafileType; Description
This method returns the data file types supported by Altium Designer. First data file type starts at 0. This method is used by the ModelDataFileTypes property. Example
See also
IModelTypeManager interface
ModelDatafileTypes property
ModelDatafileTypeCount method
IModelTypeManager Properties
ModelDatafileTypes property
(IModelTypeManager interface) Syntax Property ModelDatafileTypes[AnIndex : Integer] : IModelDatafileType Read ModelDatafileTypeAt; Description
This property returns the data file types supported by Altium Designer. First data file type starts at 0. This property is supported by the ModelDataFileTypeAt method. Example
See also
IModelTypeManager interface
IModelDatafileType interface
ModelDatafileTypeCount method
ModelTypes property
(IModelTypeManager interface) Syntax Property ModelTypes [AnIndex : Integer] : IModelType Read ModelTypeAt; Description
This function returns the indexed model type. First model type starts at 0. This property is supported by the ModelTypeAt method. Example
See also
IModelTypeManager interface
IModelType interface
ModelTypeAt method
IDeviceSheetManager Interface
Copy LinkCopied
Overview
The IDeviceSheetManager interface represents the Device Sheets Folder dialog in Altium Designer. Invoke the DeviceSheetManager function to fetch the IDeviceSheetManager object interface.
(IDeviceSheetManagerManager interface) Syntax Function AddDeviceFolder(Const AFolderPath : WideString; ASearchSubfolder : Boolean) : Boolean; Description
This function adds a new device folder into the existing top level Device Folder and whether sub folders can be searched from that folder. Example
(IDeviceSheetManagerManager interface) Syntax Function BrowseDeviceSheet (Var AFileName : WideString; Out AFilePath : WideString) : Boolean; Description
The function BrowseDeviceSheet invokes the Select Device Sheet dialog and when you select a device sheet, the filename (without the file extension) is returned for the device sheet you chose from this dialog. This filename is returned in the AFilename parameter. Example
(IDeviceSheetManagerManager interface) Syntax Function ChooseDeviceFolder(Var AFolderPath : WideString) : Boolean; Description
This function invokes the Choose Device Sheet Folder dialog and returns you the valid device folder via the AFolderPath parameter. The function returns a false value if the dialog is cancelled. Example
(IDeviceSheetManagerManager interface) Syntax Function ConvertDeviceSheetPathToName (Const AFilePath : WideString) : WideString; Description
The function converts the full file path (the AFilePath parameter) of the device sheet to the valid device sheet filename (without the file extension). If the AFilePath parameter is invalid, an empty string is returned. Example
//Returns the filename of the valid device sheet (without the file extension).
See also
IDeviceSheetManagerManager interface
EditDeviceFolderList Method
(IDeviceSheetManagerManager interface) Syntax Procedure EditDeviceFolderList; Description
This procedure invokes the Device Sheet Folders dialog with all Device Sheet Folders if any. Example
(IDeviceSheetManagerManager interface) Syntax Function FindDeviceSheetPath (Const AFileName : WideString) : WideString; Description
This function finds the Device Sheet path for the valid device sheet (without the file extension). The valid device sheet is defined by the AFilename parameter. If the AFileName is invalid, a blank string is returned. Example ShowMessage(DeviceSheetMan.FindDeviceSheetPath('AUDIO_AMP_LM4849')); See also
IDeviceSheetManagerManager interface
GetFoldersCount Method
(IDeviceSheetManagerManager interface) Syntax Function GetFoldersCount : Integer; Description
The GetFoldersCount function returns the number of Device Sheet Folders in Altium Designer. Example
(IDeviceSheetManagerManager interface) Syntax Function GetFolders_FolderPath(AIndex : Integer) : WideString; Description
This function returns the indexed path of device sheets (as in the Device Sheet Folders dialog). The first entry starts at zero (0). Example
See also
IDeviceSheetManagerManager interface
GetFoldersCount method
GetFolders_SearchSubFolders Method
(IDeviceSheetManagerManager interface) Syntax Function GetFolders_SearchSubFolders(AIndex : Integer): Boolean; Description
This function returns a boolean result for sub folders of the indexed path of device sheets (as in the Device Sheet Folders dialog). The first entry starts at zero (0). Example
Result := DeviceSheetMan.GetFolders_SearchSubFolders(0);
4
IfResult Then
5
ShowMessage(DeviceSheetMan.GetFolders_FolderPath(0) + ‘has its sub folders’);
See also
IDeviceSheetManagerManager interface
GetFoldersCount method
WillSearchDeviceFolder Method
(IDeviceSheetManagerManager interface) Syntax Function WillSearchDeviceFolder(Const AFolderPath : WideString) : Boolean; Description
This function determines whether the Device Sheet Folder represented by the AFolderPath parameter exists or not. Example
The features available depend on your Altium product access level. Compare features included in the various levels of Altium Designer Software Subscription and functionality delivered through applications provided by the Altium 365 platform.
If you don’t see a discussed feature in your software, contact Altium Sales to find out more.