我用VB写的选择及程序如下:
" X$ n" v' a Z Set AcadDocs = AcadApp.Documents
0 v* S9 h T% \3 X' P) n S Set AcadDocs = AcadDocs.Open(Standardpath)
: A. p% _: b' n6 }2 Q AcadDocs.Utility.Prompt vbCr & "选择要录入的标准件明细:"1 e* k- h: C6 S/ k( j6 I( k
# n! j# g% L2 ?+ a
Set Selset = AcadDocs.SelectionSets.Add("Standard"); @/ o7 a, a S; o+ e) m
FType(0) = 0
7 _+ `: O! p7 u FData(0) = "*TEXT"
1 q- \) O" y. q0 I Selset.SelectOnScreen FType, FData
+ t# Z0 ?3 p Z: I7 W) a3 G3 D C执行时在已打开的CAD图中进行选择,请问能否得到选择集第一点的坐标或者说能否得到所选区域左上角点的坐标?* b8 n5 e, }, v# p8 N+ T+ B3 s
请不吝赐教,谢谢! |