Message 1 of 3
block id is not null but block will not insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to insert a block that already exists in the drawing.
I am getting a value for the block id.
I am using a msg box to post
However, when I try to insert the block
I am getting an error that says the block id is null
blkbl = blktbul(BlockTableRecord.ModelSpace).GetObject(OpenMode.ForWrite)
MsgBox(blkrec.Name)
tblkid2 = blkrec.ObjectId
MsgBox(tblkid2.ToString & " tblkid2" & tblkid3.ToString)
blktbul.UpgradeOpen()
' blokrec = blktrnz.GetObject(lytbtbl.Item("blknm"), OpenMode.ForWrite)
tblkin = New BlockReference(inspnt, blkrec.ObjectId)
MsgBox(tblkin.BlockName.ToString)