|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Create a Component object
8 m+ x8 F; P; X& h }* r0 H% E0 x
Component = PCBServer.PCBObjectFactory(eComponentObject, eNoDimension, eCreate_Default)* l4 D0 D# ~1 \ W, Z' I' A* e
Component.X = MilsToCoord(3000)
1 w4 [8 H0 E1 w! J9 ?* U( M* s Component.Y = MilsToCoord(5000)
2 r% L7 k% v: X8 j# A+ y[color=inherit !important]
) r1 J* t2 S% P ? Component.Library ="DI-PCB-1.7.LIB"1 e, V; c/ Q" C2 p2 Z3 N% s
[color=inherit !important] ? Component.Value = "LED1"( r z" H1 Z8 r7 b% {
? Component.comment = "LED1010-YG"
' F; t X1 o1 y, ^% g+ y+ v
5 z; k7 h8 J1 B N! h Component.Layer = eTopLayer( j- S7 c6 c$ y' [# ^9 H
Board.AddPCBObject(Component)
7 g* R8 ^" B/ d) r8 o+ s% z5 P; J[color=inherit !important]' b' U# m" `7 R1 J* ~
% x6 R4 s% i( a) T
I would like to ask how to call Library and Footprint ?
4 R, z1 c# y% _. g6 ~
. e, R2 W5 V+ @# j D& U1 L |
|