AD脚本使用记录-暂不更新

  1. General_Scripts 常规脚本集合
  2. HelloWorld
  3. Zipper 压缩脚本

下图为脚本路径
在这里插入图片描述
打开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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值