Message 1 of 2
insert block in modelspace while in paperspace

Not applicable
02-23-2009
01:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. Is there any way to insert a block in modelspace while active layout is paperspace and the cursor is inside a viewport? I have this as my code:
space = ThisDrawing.GetVariable("tilemode")
If (space = 1) Then
Set bref = ThisDrawing.ModelSpace.InsertBlock(pt, bnam, 1#, 1#, 1#, 0)
Else:
Set bref = ThisDrawing.PaperSpace.InsertBlock(pt, bnam, 1#, 1#, 1#, 0)
End If
the routine inserts the block in paperspace when the active layout is paperspace even if the cursor is inside a viewport. Thank you.
space = ThisDrawing.GetVariable("tilemode")
If (space = 1) Then
Set bref = ThisDrawing.ModelSpace.InsertBlock(pt, bnam, 1#, 1#, 1#, 0)
Else:
Set bref = ThisDrawing.PaperSpace.InsertBlock(pt, bnam, 1#, 1#, 1#, 0)
End If
the routine inserts the block in paperspace when the active layout is paperspace even if the cursor is inside a viewport. Thank you.