cadence SPB17.4 Capture.ini Settings
前言做CIS库时,看到资料中说到要改capture.ini中的3处配置,如下:[Allegro Footprints]Dir0=D:\Cadence\SPB_17.4\share\pcb\pcb_lib\symbolsDir1=D:\my_cadence_lib\Allegro_Footprints[Part Library Directories]Dir0=D:\my_cadence_lib\P
前言
做CIS库时,看到资料中说到要改capture.ini中的3处配置,如下:
[Allegro Footprints]
Dir0=D:\Cadence\SPB_17.4\share\pcb\pcb_lib\symbols
Dir1=D:\my_cadence_lib\Allegro_Footprints
[Part Library Directories]
Dir0=D:\my_cadence_lib\Part_Library_Directories
[CIS Browse Directories]
Dir0=D:\my_cadence_lib\CIS_Browse_Directories
[Allegro Footprints] 是封装库路径
[Part Library Directories] 是原理图库路径
[CIS Browse Directories] 是原件datasheet路径
为啥要修改这3个路径,官方文档上咋说的?
纠结这个细节,查下官方文档。
实验
关于 [CIS Browse Directories] , 找到 file:///D:/Cadence/SPB_17.4/doc/pulselibimport/2_libimport_process.html
Capture CIS import - Datasheet Models
If the value in the Datasheets column is imported as a model and is managed in Allegro EDM, configure the datasheet path as illustrated in the following example in OrCAD Capture:
[CIS Browse Directories]
Path1=D:\pcbdwlib\model_datasheets\
Path2=D:pcbdwlib\model_datasheets_cis/
Update the CIS properties using Part Manager so that all the changes related to datasheet values are updated.
orcadini.exe
在 file:///D:/Cadence/SPB_17.4/doc/cisug/AppA_Additional_CaptureCIS_Utilities.html 中,看到SPB本来有个工具叫 orcadini.exe,可以用来编辑 Capture.ini, 但是搜了一下本地和网上都没有关于这个工具的说明和出处。
orcadini.exe
Is a Windows-based program used to create and edit the master capture.ini file. The capture.ini file must be formatted in a very specific way for OrCAD Capture CIS to read it. This utility provides a simple interface to limit the possibility of introducing incorrect formatting into the master capture.ini file. You can use this utility to compare the master and local capture.ini files and copy and paste information between them.
只能手工编辑 Capture.ini
看 file:///D:/Cadence/SPB_17.4/doc/cisug/AppA_Additional_CaptureCIS_Utilities.html 的说明,也只能是用文本编辑工具,打开Capture.ini 进行人工编辑。
Capture.ini Settings
The capture.ini file is an ASCII text file that contains a number of sections with switches that control the look, feel, and operation of OrCAD Capture CIS. Each section is enclosed in square brackets. Before editing the capture.ini file, make sure OrCAD Capture is closed. To add a section manually, open the capture.ini file with a text editor and add the given section at the bottom of the file. Because the capture.ini file is resorted after each use, sections may appear in different places in the file.
Following are descriptions and examples of the capture.ini file sections you can reset with the CIS Administration Tool:
AppA_Additional_CaptureCIS_Utilities.html 中描述了 Capture.ini 的 section(节) 和 item(项) 该怎么填写。
OrCAD Layout Footprints
封装库的搜索路径
Change the default search location for footprint libraries. OrCAD Capture CIS will search any libraries in the specified directory for footprints.
Example:
[OrCAD Layout Footprints]
dir0=\\mtn_server\e drive\OrCADwin\layout\library
CIS Browse Directories
浏览性质的字段中写了一个文件名,这个文件名在哪个路径中去找?
一般原件库中会有datasheet的名字,点击一下,就可以直接打开pdf来看数据表,这个路径就干这个用的。
CIS Browse Directories
Set a default directory for the location of files called out in the browsable field.
Example:
[CIS Browse Directories]
dir0=\\mtn_server\e drive\OrCADwin\datasheets
Part Library Directories
原理图库的搜索路径
Part Library Directories
Set the locations of the libraries CIS searches to find OrCAD Capture symbols when you are placing database parts. CIS will search all libraries in the specified directory for symbols. If CIS does not locate the correct symbol library, CIS uses the directory location in the OrCAD Capture Part Selector Configured Libraries section of the capture.ini file.
Example:
[Part Library Directories]
dir0=\\mtn_server\e drive\OrCADwin\custom_symbols
dir1=Z:OrCAD\9.1\symbols\
CIS数据库(access)的格式
必须是access97的格式
OrCAD CIS Wizard
The CIS Wizard has been created for users of Capture CIS 7.2 (or later) to simplify and assist in the creation of the Engineering Part Database. Following the installation of the CIS Database Wizard, you can create a new database or update an existing database from your schematic design files.
The CIS Database Wizard will install and run from within your Capture CIS installation. Taking an existing schematic design, you can generate a new database in one of three different formats:
Microsoft Access 97
Microsoft Excel
Comma-delimited text
The CIS Database Wizard has the ability to update an existing database using the Microsoft Access 97 format only.
ESP CAD Library
文档中提到了cadence官方有这么一个元器件库,但是没看到本地和网上有这个库,估计是付费用户才能下载。
但是找到了说明书 OrCAD_ESP_CAD_Library.pdf
从说明书中,看到了大厂如何对元器件分类,这样自己做库时,就可以建立这么多元器件类的表。
Commodity(元件分类) | Part Count(元件数量) |
---|---|
Resistors(电阻) | 9221 |
Capacitors(电容) | 3606 |
Integrated Circuits(IC芯片) | 2584 |
Connectors(连接器) | 1409 |
Inductors(电感) | 1121 |
Diodes(二极管) | 819 |
Transistors(晶体/三极管) | 351 |
Crystals and Oscillators(晶体振荡器) | 243 |
Protection Devices(保护装置) | 175 |
Fuses(保险丝) | 159 |
Relays(继电器) | 158 |
Transformers(变压器/转换器) | 86 |
Switches(开关) | 62 |
Hardware(硬件) | 58 |
Sockets(插座) | 9 |
Modules(模块) | 5 |
Battery(电池) | 1 |
Electromechanical(机电/机械) | 1 |
Capture.ini 的修改时机
capture关闭时,会更新Capture.ini.
所以修改Capture.ini时,必须是SPB没有运行的时候。最好将SPB服务也停掉。
Capture.ini File
When Capture starts up, it uses a pre-defiend set of default values for the application settings. These default values are defined in the Capture configuration (Capture.ini) file.
If you are running Capture for the first time on a computer, it uses a pre-defined set of configurations to create the INI file. After this, every time you make any configuration changes, this file is updated when you close Capture.
Capture.ini的定位
Capture.ini 有默认位置,也可以指定。
但是文档中说的命令用 D:\Cadence\SPB_17.4\tools\bin\capture.exe 带命令行,不好使。
Location of Capture.ini
By default, the Capture.ini file is created in your HOME directory at the location %HOME%/cdssetup/OrCAD_Capture/<release>. If a INI file exists in your installation, it will be copied to the HOME location. However, you have the option of specifying any other location for the Capture.ini. To ensure that Capture uses the Capture.ini file from an different location, you need to specify the location as a command line argument to the Capture.exe. For details on the command line arguments for Capture, see Command Line Arguments and Switches.
还是网上那种方法最直观:启动cputrue and CIS, 看启动后的Session log 窗口的提示,可以看到使用了哪个 Capture.ini
Capture.ini 全部节和项的内容约定
Capture.ini Variables
The Capture.ini file contains a large set of initialization variables used by Capture. Since this file is a text-based file, you have the option to modify or delete the variables and sections in this file. However, any changes you make to this file can cause unexpected behavior in Capture. So you are advised to only make changes as recommended in Capture.ini Variables.
根据官方文档提示,可以知道 file:///D:/Cadence/SPB_17.4/doc/cap_ug/Capture.ini_Variables.html 是 Capture.ini 最全的一个文档。
能修改的项的目录截图如下:
根据这个文档(Capture.ini_Variables.html),拿关键字去Capture.ini 搜索,就知道大概含义和写法了。
我纠结Capture.ini,主要是想知道做CIS元件库时,为什么那么填写(封装库,原理图库,datasheet目录)搜索路径。
其他项都不太关心。只从Capture.ini_Variables.html 中摘录出搜索路径的片段如下:
封装库搜索路径
Allegro Footprints
The variable (or variables) in this section define the directory location (or locations) for the psm and pad files used by the PCB Editor 3D Footprint Viewer to display a footprint. A psm file is used by the PCB Editor 3D Footprint Viewer to display the 3D footprint. A pad file is used by the Viewer to display the pin information in the viewer.
You can define any number of paths that contain the psm and pad files. If you define multiple paths, Capture CIS will search the directories, for the footprint files, in the order in which they are defined in this section.
If the footprint information (corresponding psm file) is not found in any of the paths defined by the variables in this, Capture CIS will display an error message in the Session log window.
Example:
[Allegro Footprints]
Dir1=D:\cadence163\share\pcb\pcb_lib\symbols
Dir2=D:\SPB162\tools\fsp\examples\libraries\footprints\allegro
DBC文件搜索路径
Configuration File
Use this variable to define the path for the database configuration file if you are using the Licensed version of Capture CIS.
Example:
Configuration File=C:\174\tools\capture\samples\BENCHACC.DBC
原理图库和浏览文件路径并没有详细例子,还是我从前面找到的文档中有详细例子。
总结
看官方文档,可以习得一些奇怪冷门的知识点。即使没什么实质性收获,也能开阔解决问题的思路。
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
所有评论(0)