哦 我说说我的具体问题吧
有个数组lay()我用来放我的层,第i层里的直线是我想要的
那程序应该是,前提是每个层里只有一条线
Dim tempss As AcadSelectionSet Set tempss = ThisDrawing.SelectionSets.Add("ss") Dim gp As Integer Dim gpc As Variant gp = 8 gpc = "lay(i)"
tempss.Select acSelectionSetAll, , , gp, gpc
Dim lll as Acadline Dim ll As AcadLine For Each ll In tempss Set lll =ll
Next
可是这句不通呢 tempss.Select acSelectionSetAll, , , gp, gpc