找回密码
 注册
关于网站域名变更的通知
查看: 2144|回复: 2
打印 上一主题 下一主题

原理图中,选中多个网络标号 INspector 里text 的smart Edit

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2014-11-4 11:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

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

x
原理图中,选中多个网络标号 INspector 里text 的smart Edit 里Apply formula 怎么用

该用户从未签到

2#
发表于 2014-11-5 17:09 | 只看该作者
转帖回复中有图片,为保持图片不被论坛破坏,将参考 转帖回复内容发到 pcbbbs 中:2 l* y9 D5 J) F- R. X7 q% x2 V
& d: {1 k% P$ i& y2 \
【转贴整理】批处理应用举例: the Smart Edit dialog for the String  Q: g, F# S& @1 x( G- B
http://www.pcbbbs.com/forum.php?mod=viewthread&tid=269098&fromuid=63313& h! ~4 @/ p  q3 x8 S: ]% q2 C+ S
2 J- T" @* h4 [
转帖因原作者内容 而设为精华
! y& R7 ]2 }& r7 E

该用户从未签到

3#
发表于 2014-11-6 08:41 | 只看该作者
Formula Tab
; V* f" j; q( o1 |2 Y  z% w# G, d( m! B0 {6 q/ D0 _1 r
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.2 N) s! N! v/ L
' `) u: \( D! I
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 the Name attribute. This would take the existing (original) string value and concatenate it with a specified new string, as illustrated below:
! |9 u* [5 F# D  tName + '_MEM'; j5 ?9 H8 K" L) Q. S# g# p/ ^! ?
or, in shortened form:* p% g4 l( G/ O8 \$ ?+ U
! + '_MEM'
) b5 r( a, Q" N5 N  U7 WNote 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.
0 z. S) I' T- LTo 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:: V) M; w  B' s* a7 ]
'IO' + Copy(String,5,6) + '32'/ b7 c) j6 I0 V% v% |3 z& g
or, in shortened form:' u9 y& o. ?7 w
'IO' + Copy(!,5,6) + '32'

  U5 O+ N9 w% y# l* V5 r( V! D4 t
' W  G" M4 B7 ohttp://wiki.altium.com/plugins/viewsource/viewpagesrc.action?pageId=5734966
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-8-21 15:38 , Processed in 0.109375 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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