您所在的位置:e-works首页 > 产品创新数字化(PLM) > EDA

<连载>Protel二次开发从入门到精通

--正文篇——第十二章第2节

发表时间:2007-12-1  特约撰稿人: 张浩 白二平 来源:e-works
关键字:EDA Protel 二次开发
PCB编辑器的应用程序开发接口提供了在设计资源管理器99中控制PCB编辑器的功能,因而使用PCB编辑器API,允许服务器访问PCB编辑器提供的服务。本章节是PCB编辑器API所提供功能的说明,对其中一些PCB API函数和类,提供了一些例子。作者邮箱:bullzhanghao@yahoo.com.cn 如有疑问,可直接与作者联系!
2.44 kTearDropBitMask常量

声明(来自PCBTypes单元):

kTearDropBitMask = $4000;

描述:

kTearDropBitMask是一个和TPCBObject的子孙类对象的Bitfield2字段进行“与”操作的常量,来获取泪滴焊盘(teardrop)的状态(其是一个逻辑结果)。

参见其它:

BitField字段

2.45 kTestPoint_BottomBitMask常量

声明(来自PCBTypes单元):

kTestPoint_BottomBitMask = $2000;

描述:

kTestPoint_BottomBitMask是一个和TPCBObject的子孙类对象的Bitfield2字段进行“与”操作的常量,来获取测试点(testpoint)的状态(其是一个逻辑结果)。

参见其它:

BitField字段

2.46 kTestPoint_TopBitMask常量

声明(来自PCBTypes单元):

kTestPoint_TopBitMask= $0800;

描述:

kTestPoint_TopBitMask是一个和TPCBObject的子孙类对象的Bitfield2字段进行“与”操作的常量,来获取测试点(testpoint)的状态(其是一个逻辑结果)。

参见其它:

BitField字段

2.47 kUnidentifiedPart常量

声明(来自PCBTypes单元):

kUnidentifiedPart = '$$$';

描述:

kunidentifiedPart常量定义了未识别的组件对象。

参见其它:

PcbApi_QueryComponentUniqueId函数

TPcbComponent类

2.48 kUserRoutedBitMask常量

声明(来自PCBTypes单元):

kUnidentifiedPart = $8000;

描述:

kUserRoutedBitMask是一个和TPCBObject的子孙类对象的Bitfield2字段进行“与”操作的常量,来获取用户布线(UserRouted)的状态(其是一个逻辑结果)。

参见其它:

BitField字段

2.49 k1Inch常量

声明(来自PCBTypes单元):

k1Inch = 1000 * kInternalUnits;

描述:

K1Inch常量定义了基本的一个英寸单位,一英寸等于1000个密耳(长度单位,等于一英寸的千分之一(10-3)(0.0254毫米))。

参见其它:

kInternalUnits常量

2.50 k1Mil常量

声明(来自PCBTypes单元):

k1Mil = 1 * kInternalUnits;

描述:

k1Mil常量定义了基本密耳单位(长度单位,等于一英寸的千分之一(10-3)(0.0254毫米))。

参见其它:

kInternalUnits常量

2.51 MaxBoardLayer常量

声明(来自PCBTypes单元):

MaxBoardLayer = eMultiLayer;

描述:

MaxBoardLayer常量定义了印制板最多的层或最后被使用的层。

2.52 MaxInternalPlane常量

声明(来自PCBTypes单元):

MaxInternalPlane= eInternalPlane16;

描述:

MaxInternalPlane常量定义了最多或最后被使用的内部平面层。

参见其它:

MinInternalPlane常量

2.53 MaxLayer常量

声明(来自PCBTypes单元):

MaxLayer = eViaHoleLayer;

描述:

MaxLayer常量定义了最多或最后被使用的层。

参见其它:

MinLayer常量

2.54 MaxMechanicalPlane常量

声明(来自PCBTypes单元):

MaxMechanicalLayer = eMechanical16;

描述:

MaxMechanicallPlane常量定义了最多或最后被使用的机械平面层。

参见其它:

MinMechanicalPlane常量

2.55 MaxObject常量

声明(来自PCBTypes单元):

MaxObject = eBoardObject;

描述:

MaxObject常量定义了最多或最后被使用的对象。

参见其它:

MinObject常量

2.56 MaxRouteLayer常量

声明(来自PCBTypes单元):

MaxRouteLayer = eBottomLayer;

描述:

MaxRouteLayer常量定义了最多的布线层或最后被使用的布线层。

2.57 MechanicalLayers常量

声明(来自PCBTypes单元):

MechanicalLayers : TSetOfLayers = [eMechanical1..eMechanical16];

描述:

InternalPlanes常量由一组内部层组成,能包括下列项[eMechanical1.. eMechanical16]。

2.58 MinInternalPlane常量

声明(来自PCBTypes单元):

MinInternalPlane = eInternalPlane1;

描述:

MinInternalPlane常量定义了最小或最先被使用的内部平面层。

参见其它:

MaxInternalPlane常量

2.59 MinLayer常量

声明(来自PCBTypes单元):

MinLayer = eTopLayer;

描述:

MinLayer常量定义了最小或最先被使用的层。

参见其它:

MaxLayer常量

2.60 MinMechanicalLayer常量

声明(来自PCBTypes单元):

MinMechanicalLayer = eMechanical1;

描述:

MinMechanicalLayer常量定义了最小或最先被使用的机械层。

参见其它:

MaxMechanicalLayer常量

2.61 MinObject常量

声明(来自PCBTypes单元):

MinObject = eArcObject;

描述:

MinObject常量定义了最小或最先被使用的对象。

参见其它:

MaxObject常量

2.62 Numbers常量

声明(来自PCBTypes单元):

Numbers: Set Of Char = ['0'..'9'];

描述:

一组字符集数组,从“0”至“9”

2.63 Rotation0AllowedBitmask常量

声明(来自PCBTypes单元):

Rotation0AllowedBitMask = $01;

描述:

Rotation0AllowedBitmask常量是$01。

2.64 Rotation90AllowedBitMask常量

声明(来自PCBTypes单元):

Rotation90AllowedBitMask = $02;

描述:

Rotation90AllowedBitMask常量是$02。

2.65 Rotation180AllowedBitMask常量

声明(来自PCBTypes单元):

Rotation180AllowedBitMask = $08;

描述:

Rotation180AllowedBitMask常量是$08。

2.66 Rotation270AllowedBitMask常量

声明(来自PCBTypes单元):

Rotation270AllowedBitMask = $10;

描述:

Rotation270AllowedBitMask常量是$10。

2.67 RotationsAllAllowedBitMask常量

声明(来自PCBTypes单元):

RotationsAllAllowedBitMask = $20;

描述:

RotationsAllAllowedBitMask常量是$20。

2.68 SignalLayers常量

声明(来自PCBTypes单元):

SignalLayers : TSetOfLayers = [eTopLayer..eBottomLayer];

描述:

SignalLayers常量包含一组层的集合,能包括下列项[eTopLayer.. eBottomlayer]。

2.69 TopLayerPermitted_Bitmask常量

声明(来自PCBTypes单元):

TopLayerPermitted_BitMask= $01;

描述:

TopLayerPermitted_Bitmask常量被使用在布局设计规则的许可层。

参见其它:

PcbApi_QueryRulePermittedLayersRule函数

2.70 V3MaxBoardLayer常量

声明(来自PCBTypes单元):

V3MaxHoardLayer = eV3BottomLayer;

描述:

V3MaxBoardLayer常量定义了最多印制板层或最后被使用的印制板层。

参见其它:

V3MinLayer常量

V3MaxLayer常量

2.71 V3MaxLayer常量

声明(来自PCBTypes单元):

V3MaxLayer = eV3ViaHoleLayer;

描述:

V3MaxLayer常量定义了最多或最后被使用的层。

参见其它:

V3MinLayer常量

2.72 V3MaxRouteLayer常量

声明(来自PCBTypes单元):

V3MaxRouteLayer = eV3BottomLayer;

描述:

V3MaxRouteLayer常量定义了最多布线层或最后被使用的布线层。

参见其它:

V3MinRouteLayer常量

2.73 V3Minlayer常量

声明(来自PCBTypes单元):

V3MinLayer = eV3TopLayer;

描述:

V3MinLayer常量定义了最小或最先被使用的层。

参见其它:

V3MaxLayer常量

本文为e-works原创投稿文章,未经e-works书面许可,任何人不得复制、转载、摘编等任何方式进行使用。如已是e-works授权合作伙伴,应在授权范围内使用。e-works内容合作伙伴申请热线:editor@e-works.net.cn tel:027-87592219/20/21。

责任编辑:王阳
2
相关专题