下图为脚本路径
打开AD,文件 > 运行脚本
浏览 > 来自文件,图中的脚本是已经导入好的
选择需要导入的脚本 > 确定
这时可以看到导入的脚本
选中有两个剪头图标的那个文件,点击确定
运行脚本时会出现下面的提示,关掉就好
要关掉下图.PAS文件时会提示错误,先停止脚本就可以了
IniFileEg
此脚本演示了tinifileobject和读/写方法。
This script demonstrates the use ofTIniFileobject and the Read/Write methods.
Mandelbrot
此脚本演示如何使用图形构建Mandelbrot设置为脚本形式。
This script demonstrates the use of graphics to build a Mandelbrot set on a script form.
MM
此脚本演示了媒体播放器组件。保护层。需要avifile此MM脚本。
This script demonstrates the use of theTMediaPlayercomponent. TheProtel.avifile is needed for this MM script.
ShowModalEg
此脚本演示如何使用ShowModalProperty for脚本窗体。
This script demonstrates the use of theShowModalproperty for the script form.
SineWave
此脚本演示如何生成和绘制正弦曲线
This script demonstrates how to generate and plot a sine wave on a script form.
TextFileConvert
在脚本窗体上挥手
Theinput.txtfile is provided for demo purposes.
TicTac
井字游戏
A Tic Tac Toe game.
UpdateTime
此脚本演示了TimerComponent的使用和时间函数。
This script demonstrates the use of theTTimercomponent and the Time function.
HelloWorld
Zipper (好使)
4. PCB Scripts PCB脚本
Count_Connection_Lines
此脚本演示如何计算PCB文档上的连接线(未布线的磁道),并在消息面板上显示结果。
This script demonstrates how to count connection lines (unrouted tracks)on a PCB document and displays the results on theMessagespanel.
CreateAVia
此脚本演示如何在PCB文档上创建新的Via对象。
This script demonstrates how to create a new Via object on a PCB document.
CreateComponentOnPCB
此脚本演示如何在PCB文档上创建新组件。
This script demonstrates how to create a new component on a PCB document.
CreateFootprintinLibrary
此脚本演示如何在库文档上创建新的示意图。
This script demonstrates how to create a new footprint on a Library document.
CreatePCBObjects
此脚本具有各种功能,可以在PCB文档上创建不同的PCB对象。此脚本使用SendMessageToRobots方法发送PCB信息。
This script has various functions to create different PCB objects on a PCB document.This script uses thesendMessageToRobotsmethod to send PCB messages.
CreateRules(可以修改使用)
此脚本演示如何创建两个不同的规则最大最小宽度规则和ROOM定义规则(限制约束)。
This script demonstrates how to create two different rules-maximum-minimum width rule and a room definition rule(confinement constraint).
Cycle_Pcb_Cursor_Type
此脚本循环遍历PCB文档上可用的光标类型。
This script cycles through available cursor types on a PCB document.
此脚本循环遍历PCB文档上可用的光标类型。
DeletePCBObjects
此脚本演示如何删除PCB对象并正确更新撤消系统。
This script demonstrates how to delete PCB Objects and update the Undo System properly.
EmbeddedObjects
该脚本演示了嵌入式对象的使用;也就是说,在当前PCB文档上创建和获取这些嵌入对象。
This script demonstrates the use of embedded objects;that is,creates and fetches these embedded objects on a current PCB document.
NetobjectAssign
此脚本演示如何将net属性分配给已放置在PCB文档上的新对象。
This script demonstrates how to assign a net property to a new object that has been placed on a PCB document.
PadViaCacheProperties
此脚本演示了在Pad和Via中使用theTPadcacherecord和theGetobjectAtCursormethod物体。LoadPadvia示例。在运行脚本之前,请从\DelphiScript Scripts\pcb文件夹中删除pcbdoc。
This script demonstrates the use of theTPadCacherecord and theGetObjectAtCursormethod for Pad and Via Objects. LoadPadViaExamples.PcbDocfrom the\DelphiScript Scripts\PCBfolder before running the script.
PadStackInfo
此脚本演示如何在PCB文档上获取不同的焊盘堆栈信息。
This script demonstrates how to fetch different pad stack information on a PCB document.
QueryBoard
此脚本查询当前PCB文档中的线路板设置信息。
This script queries the current PCB document for board settings information.
Undo
此脚本演示PCB的撤消系统。演示撤消系统的两个步骤
用作一个大型撤消或多个较小的撤消。
This script demonstrates the PCB’s Undo system. Two procedures to demonstrate how the Undo system works - as one large Undo or multiple smaller Undos.