我已连接了该块。当我检查块的扩展数据时,我可以看到不正确的插入点(10-2.05182e-009 0.0 0.0)。当我列出块时,插入点是0,0,0。
以下是检查块以确保其在0,0,0处插入的代码:
-
- Private Sub checkTitleBlockInsertionPoint()
- Dim temp1 As AcadBlockReference
- If strDrawingType = "iso" Then
- grpCode(0) = 2
- dataVal(0) = strIsoBorderBlockName
- Else
- grpCode(0) = 2
- dataVal(0) = strGABorderBlockName
- End If
- 'Problem found with iso border insertion point not reading properly.
- 'Temporarily remove the check for insertion point.
- If strDrawingType <> "iso" Then
- Set ssetobj = AddSelectionSet("SS01")
- mode = acSelectionSetAll
- ssetobj.Select mode, , , grpCode, dataVal
- Set temp1 = ssetobj.Item(i)
- i = 0
- For i = 0 To 2
- If temp1.InsertionPoint(i) <> 0 Then
- errorType (2)
- Exit For
- End If
- i = i + 1
- Next
- End If
- End Sub
|