在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1491|回复: 3

[求助] dbcreateTextDisplay 函数用法求助

[复制链接]
发表于 2021-12-22 10:30:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

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

x
本帖最后由 xiouyi123 于 2021-12-22 10:35 编辑

exp:
1:cv=geGetEditCellView()
2:inst=dbFindAnyInstByname(cv ”I0")
3:tdMaster=dbOpenCellViewByType("tranTst" "iopin" "symbol')
4:assoc=car(setof(i tdMaster~>shapes i~>objType =="label" &&i~>theLabel=="[@terminalName]"))
5:obj=dbCreateTextDisplay(assoc inst 230 t 10:0 "lowerLeft" "R0" "stick" 1 t nil t t t "mylabel" nil)
**************************************
大师们,第五行这个函数里的“assoc”这个参数的目的是什么 ,如果我想运行dbCreateTextDisplay()这个函数,那么”assoc“和“inst”这两个参数我该如何设置,我看了help文件还是不怎么理解。

发表于 2021-12-22 16:32:21 | 显示全部楼层
assoc 是一个变量,接收等号右边返回的满足搜索条件的那个inst的label。其中,搜索条件就是I0这个inst的Master cell的label==[@terminalName]。所以 assoc就是Label.



 楼主| 发表于 2021-12-23 15:44:32 | 显示全部楼层


amodaman 发表于 2021-12-22 16:32
assoc 是一个变量,接收等号右边返回的满足搜索条件的那个inst的label。其中,搜索条件就是I0这个inst的Mas ...


谢谢。我已经理解assoc 的含义了


1:cv=geGetEditCellView()
2:inst=dbFindAnyInstByname(cv ”I0")
3:tdMaster=dbOpenCellViewByType("test" "test_1" "layout')
4:assoc=car(setof(i tdMaster~>shapes i~>objType =="label" &&i~>theLabel=="I0"))
5:obj=dbCreateTextDisplay(assoc inst 230 t 10:0 "lowerLeft" "R0" "stick" 1 t nil t t t "mylabel" nil)

但是当我运行时报wraning:dbCreateTextDisplay: label associate textDisplay requires the label be in a different cellview


而当我把label放到另一个cellview时,又报:

wraning:dbCreateTextDisplaynly master cellview label can be an assoc. of textDisplay
大师,请问如果我想运行成功dbCreateTextDisplay()我应该怎么办
再次谢谢大师


发表于 2024-3-3 01:08:29 | 显示全部楼层
dbCreateTextDisplay(pin~>net~>term pin list("text" "drawing") list("justify" "orient") list(0 -4) "centerCenter" "R0" "roman" 2 nil nil t nil t)

对于生成pin的td可以这样写

实际上,finder里面有写
Associate of the text display. This can be a label in a master cellview, a property, or a dbObject whose attribute t_attrName is to be displayed. See the attribute tables later in this chapter for lists of attributes for objects that can be displayed. Like labels, properties and attributes of master cellviews and terminals can be the associates of text displays that you create in the cellview where that master is instantiated. Such text display objects are called cross-cellview text displays.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-28 06:55 , Processed in 0.019256 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表