Message 1 of 3
Balloons Acad2000 Mechanical

Not applicable
05-02-2001
04:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I try to insert a block with a partref by vba code.
when I place the block with this code i can place a balloon with the amballoon command
When I place the the same block a second time with this code then the amballoon command fails. What can I do about it.
Public Sub test()
Dim blockprofiel As AcadBlockReference
Dim blockprofiel1 As AcadBlockReference
Dim block As AcadBlock
Dim profiel As String
Dim point(0 To 2) As Double
point(0) = 0
point(1) = 0
point(2) = 0
profiel = "t:\skywalloud\profielbm\swt120.dwg"
Set blockprofiel1 = ThisDrawing.ModelSpace.InsertBlock(point, profiel, 1#, 1#, 1#, 0)
ThisDrawing.Regen acAllViewports
End Sub
when I place the block with this code i can place a balloon with the amballoon command
When I place the the same block a second time with this code then the amballoon command fails. What can I do about it.
Public Sub test()
Dim blockprofiel As AcadBlockReference
Dim blockprofiel1 As AcadBlockReference
Dim block As AcadBlock
Dim profiel As String
Dim point(0 To 2) As Double
point(0) = 0
point(1) = 0
point(2) = 0
profiel = "t:\skywalloud\profielbm\swt120.dwg"
Set blockprofiel1 = ThisDrawing.ModelSpace.InsertBlock(point, profiel, 1#, 1#, 1#, 0)
ThisDrawing.Regen acAllViewports
End Sub