Message 1 of 5
vb block insert

Not applicable
12-03-2007
07:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I insert a block using the following code in paper space the block does not appear. Work fine in model space. Does anyone have any ideas?
' Insert the block
Dim InsertPnt As Variant
Dim prompt1 As String
prompt1 = vbCrLf & "Enter the Insertion point for the Titleblock: "
'user defines insertion point
InsertPnt = ThisDrawing.Utility.GetPoint(, prompt1)
Dim blockRefObj As AcadBlockReference
Set blockRefObj = ThisDrawing.ModelSpace.InsertBlock(InsertPnt, "K:\Autodesk\AutoCAD\TEMPLATES\Howden_Standard_B.dwg", 1#, 1#, 1#, 0)
ZoomExtents 'Zoom extents on the drawing
' Insert the block
Dim InsertPnt As Variant
Dim prompt1 As String
prompt1 = vbCrLf & "Enter the Insertion point for the Titleblock: "
'user defines insertion point
InsertPnt = ThisDrawing.Utility.GetPoint(, prompt1)
Dim blockRefObj As AcadBlockReference
Set blockRefObj = ThisDrawing.ModelSpace.InsertBlock(InsertPnt, "K:\Autodesk\AutoCAD\TEMPLATES\Howden_Standard_B.dwg", 1#, 1#, 1#, 0)
ZoomExtents 'Zoom extents on the drawing