PCB论坛网

 找回密码
 注册
查看: 4495|回复: 6

【转贴整理】批处理应用举例: the Smart Edit dialog for the String

[复制链接]
发表于 2014-11-5 16:54:06 | 显示全部楼层 |阅读模式
本帖最后由 wanghanq 于 2014-11-5 17:01 编辑

特注:精华 为  opchywen 而设
****************************************

看到网友的帖子:
原理图中,选中多个网络标号 INspector 里text 的smart Edit
http://www.eda365.com/forum.php?mod=viewthread&tid=102641&fromuid=4169

因内容包含图片(不想被论坛再编辑破坏),将此话题新开贴发到这里供网友参考。

网友原贴地址:

把原理图和PCB复制元件和封装到库的一些技巧(以抄OK6410的底座封装为例)2012-08-20 09:30
http://blog.csdn.net/opchywen/article/details/7884504

opchywen嵌入式探索的经验技巧分享--一个宁愿花更多的时间来发现技巧、寻找规律,也不喜欢意蛮干的人!!!


今天 在飞凌官网下载了OK6410的原理图和PCB,如果想做一块Mini的底板。如何能最快地利用上飞凌原来画好的板,是我想解决的问题。
1、首先,把飞凌官方的底板座复制下来,见下图:


2、切换到PCB库,粘贴(注意,要在编辑区粘贴,不要在PCB LIBRARY那里粘贴,如果在那里粘贴的话会分开成5个封装的。)效果见下图:

3、现在放大你会发现,那四个底座引脚的名称都是从1到80,这样元件库跟封装是对应不起来的。所以可以想个方法把那四个座的数字前分别加上ABCD。一个一个地改,这不是我风格,呵呵!探索开始了。。。还是直接贴结果吧,过程现在不重要,哈。
发现有一段是这样写的:
Formula Tab

This tab provides for more advanced modification, allowing you to apply a specific expression to the selected string objects. The expression can include any built-in arithmetic operators and functions that apply to strings (found in Pascal). Once again, if you wish to use the current value for the attribute as part of the expression, you will need to make reference to this original value, either by using the full name of the attribute, or by using the exclamation character (the supported substitute for the name of the attribute currently being modified). When using attribute names, if any names contain spaces, these must be replaced by the underscore character. So, for example, use of the Component Comment field within a formula should be entered as Component_Comment.

Consider for example three selected memory components specified in a design, with designators U1, U3 and U5. You might want to extend the designators of these components by including some indication of their role. Using the addition operator, you could write an expression to add to the existing string value of theName attribute. This would take the existing (original) string value and concatenate it with a specified new string, as illustrated below:
Name + \\\\\\\'_MEM\\\\\\\'
or, in shortened form:
! + \\\\\\\'_MEM\\\\\\\'
Note that the spaces are optional. When you press ENTER the designators of the components will be updated to U1_MEM, U3_MEM and U5_MEM respectively.
To illustrate the use of string-based functions consider the Copy function, which can be used to take a portion of an original string and place it within an expression to create a new string. Take again the Comms Port example (see Batch Replacement of String-based Attributes), where strings of the form CommPortx_8 need to be changed to IOPortx_32. In this case you could select the four free string objects, access the Smart Edit dialog for the String attribute and write the following expression on the Formula tab:
\\\\\\\'IO\\\\\\\' + Copy(String,5,6) + \\\\\\\'32\\\\\\\'
or, in shortened form:
\\\\\\\'IO\\\\\\\' + Copy(!,5,6) + \\\\\\\'32\\\\\\\'

这里就不翻译了,直接上如何操作:用鼠标选中一个底座的引脚,打开PCBLIB Inspector点击Name 右边 的三点,打开Smart Edit 如图那样填写,确定后再放大那底座你会发现,那底座所有的引脚前都加上A了。用同样的方法给另外的底座分别加上BCD。

4、下面再看一下怎么创建一个原理图库与之相对应:
打开飞凌的原理图,把那个元件复制一下,如下图:

转到原理图库,在SCH Library 那里粘贴,注意,在编辑区域是粘贴不了的。


由于人们复制的封装有四个底座,所以建四个部分,见下图:

然后选中选一部分,把那元件复制一下,见下图,然后粘贴到其它三部分:

接下来改一下元件的引脚名称与封装相对应就行了,改的原理跟改PCB的差不多,见下图:然后把其它的也改一下。。。

在原理图里放元件的效果图:

上面只是演示了一个抄原理图封装的一些技巧...



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
回复

使用道具 举报

发表于 2014-11-7 13:45:41 | 显示全部楼层
很实用的一个小技巧,试验过了,‘用鼠标选中一个底座的引脚’ 只是要理解成,批量管脚选中状态,单个管脚是没有效果的

评分

参与人数 1金钱 +200 兑换点 +5 收起 理由
wanghanq + 200 + 5

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2016-1-7 11:49:18 | 显示全部楼层
很实用的技巧,非常好用
回复 支持 反对

使用道具 举报

发表于 2017-8-30 14:10:04 | 显示全部楼层
很实用的技巧
回复 支持 反对

使用道具 举报

头像被屏蔽
发表于 2022-10-2 14:58:35 | 显示全部楼层
专业PCB Layout团队兼职
※服务项目:
01).承接PCB Layout;
02).PCB打板;
03).SMT;
04).硬件调试;
05).射频调试。
※团队实力:
01).拥有服务于各大、中型集团公司的PCB Layout高、中级工程师30余人,专业承接各类电子产品的PCB Layout;
02).熟练使用EDA工具: Cadence、PADS、AD;
03).对BMS、手机、平板电脑、电脑主板、医疗产品穿戴产品、4G/5G模块、各类网卡、显卡、内存条、网络交换机、工控板、开关电源板等有丰富经验;
04).熟悉各类安规、EMC、EMI、RFI、ESD等,在产品设计中充分考虑并规避EMC、EMI、RFI、ESD对产品电性能的影响,保障信号完整性;
05).丰富的高精密度、多层、多阶盲埋孔的PCB设计经验;
06).丰富的PCB设计经验和分析解决问题能力,丰富的射频电路、高速数字电路PCB设计经验;
07).丰富的DDR高速信号延时分析及处理能力,根据阻抗要求和电性运行频率,熟练对各类DDR线、阻抗线、差分线进行等长蛇形处理;
08).最小BGA引脚间距:0.4mm(16mil);
09).最小线宽/线间距:0.06mm(2.4mil);
10).熟悉PCB生产加工工艺和PCB装配精度要求,SMT 生产工艺流程,充分考虑PCB布局、布线的生产、加工、SMT可行性及便利性;
11).重要承诺:可一版量产。
※价格和交期:
收费合理,交期准时。
※联系人:王先生
※电  话:13798306402(微信同号)
※E-_mail:S13798306402@163.com
※Q    Q:1240224280

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|手机版|PCB设计论坛|EDA论坛|PCB论坛网 ( 沪ICP备05006956号-1 )

GMT+8, 2024-4-20 18:26 , Processed in 0.204559 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表