AttachedText属性笔记

概述

allegro skill编程中有一个对象是AttachedText,下面是从BRD的一个电阻获取的AttachedText

创建文本

在这里插入图片描述

添加文本到器件

	(axlSetFindFilter ?enabled (list "symbols" "vias" ) ?onButtons (list "symbols" "vias"))
	axlSingleSelectPoint()
	
	res = car(axlGetSelSet())
	println( res->?? )
	l_dbid = axlDBGetAttachedText( res )
	foreach( dbid l_dbid
		println( dbid->?? )
	)
	
	myorient = make_axlTextOrientation(
		?textBlock "8", 
		?rotation 60.,
		?mirrored nil, 
		?justify "center"
	)
	l_result = axlDBCreateText(
		"China Japan" ,
		res->xy,
		myorient,
		"PACKAGE GEOMETRY/DIMENSIONS",
		res		
	);

电阻AttachedText

(prop nil bBox ((6876.0 1148.5) 	(6921.0 1271.5)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6888.5 1269.0) 		text "0.84" 				textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6926.0 1134.0) 	(6971.0 1288.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6938.5 1285.5) 		text "33.00" 				textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6989.5 982.0)  	(7112.5 1027.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6992.0 994.5) 		text "1.02" 				textBlock "25" rotation 0.0   parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6973.0 1032.0) 	(7127.0 1077.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6975.5 1044.5) 		text "40.00" 				textBlock "25" rotation 0.0   parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6992.0 1282.0) 	(7084.0 1327.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6994.5 1294.5) 		text "0.5" 					textBlock "25" rotation 0.0   parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6959.0 1332.0) 	(7113.0 1377.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (6961.5 1344.5) 		text "19.68" 				textBlock "25" rotation 0.0   parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7083.0 1194.0) 	(7128.0 1224.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (7095.5 1221.5) 		text "1" 					textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7133.0 1136.0) 	(7178.0 1290.0)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSION" 		xy (7145.5 1287.5) 		text "39.38" 				textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6767.5 1140.5) 	(6812.5 1294.5)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSIONS" 		xy (6780.0 1292.0) 	 	text "R0402" 				textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6814.16 985.03) 	(6859.16 1294.03)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSIONS" 		xy (6826.66 1291.53) 	text "SMD21X24_4" 			textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6722.5 1068.5) 	(6767.5 1284.5)) 	readOnly t objType "text" layer "PACKAGE GEOMETRY/DIMENSIONS" 		xy (6735.0 1282.0) 		text "H:14MIL" 				textBlock "25" rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7014.6 1194.63) 	(7061.93 1347.63)) 	readOnly t objType "text" layer "REF DES/ASSEMBLY_TOP" 				xy (7027.93 1344.63) 	text "R3585" 				textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7048.63 818.4) 	(7095.96 1343.4)) 	readOnly t objType "text" layer "DEVICE TYPE/ASSEMBLY_TOP" 			xy (7061.96 1340.4) 	text "R_R0402_22R1%0402" 	textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((6991.63 817.4) 	(7038.96 1342.4)) 	readOnly t objType "text" layer "DEVICE TYPE/SILKSCREEN_TOP" 		xy (7004.96 1339.4) 	text "R_R0402_22R1%0402" 	textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7082.63 949.4) 	(7129.96 1226.4)) 	readOnly t objType "text" layer "COMPONENT VALUE/ASSEMBLY_TOP" 		xy (7095.96 1223.4) 	text "22R1%0402" 			textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7026.63 941.4) 	(7073.96 1218.4)) 	readOnly t objType "text" layer "COMPONENT VALUE/SILKSCREEN_TOP" 	xy (7039.96 1215.4) 	text "22R1%0402" 			textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7017.63 1142.4) 	(7064.96 1233.4)) 	readOnly t objType "text" layer "TOLERANCE/SILKSCREEN_TOP" 			xy (7030.96 1230.4) 	text "TOL" 					textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)
(prop nil bBox ((7078.63 1143.4) 	(7125.96 1234.4)) 	readOnly t objType "text" layer "TOLERANCE/ASSEMBLY_TOP" 			xy (7091.96 1231.4) 	text "TOL" 					textBlock "2"  rotation 270.0 parent dbid:-2144513472 mirrorType "NO" isMirrored nil justify "LEFT" parentGroups nil)

获取对象文本

axlDBGetAttachedText(
	o_dbid
)

报告和压缩文本块

axlDBTextBlockCompact(
	t/nil
)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值