EDA365电子工程师网
标题:
Altium Designer VBS Script
[打印本页]
作者:
nobody_a
时间:
2018-6-6 16:46
标题:
Altium Designer VBS Script
Create a Component object
$ n# G( k( N x3 _
5 L7 L$ y% l; E. N: ^7 X/ }5 R1 v
Component = PCBServer.PCBObjectFactory(eComponentObject, eNoDimension, eCreate_Default)
% a' s0 B- P6 l+ r" M! O1 w
Component.X = MilsToCoord(3000)
) x. H- G5 ?8 M
Component.Y = MilsToCoord(5000)
0 W1 L1 i1 ]( X0 [9 N
[color=inherit !important]
( S! k$ T- t9 b; d, y$ @. k: B; ]
? Component.Library ="DI-PCB-1.7.LIB"
' p/ r- q; g* ?: m C, T' T
[color=inherit !important]
? Component.Value = "LED1"
# z) i' j% [/ V/ h6 N
? Component.comment = "LED1010-YG"
) `* }8 E" M" J3 y; P& v+ b% B
9 ?' _ c6 s7 ~' o
Component.Layer = eTopLayer
- Q/ Y A" V9 i7 c. H
Board.AddPCBObject(Component)
& O1 d+ s4 _" M N
[color=inherit !important]
G {# U2 a8 s/ [ h# _; a
% W' w0 y7 m9 W1 t+ o5 w
I would like to ask how to call Library and Footprint ?
: ?- X }) W( [' I3 N
8 y X' W8 H: E/ R
欢迎光临 EDA365电子工程师网 (https://bbs.elecnest.cn/)
Powered by Discuz! X3.2