How to insert a block from file

How to insert a block from file

Anonymous
Not applicable
422 Views
2 Replies
Message 1 of 3

How to insert a block from file

Anonymous
Not applicable
Like subject, i need to import a lot of block that are in single file, how can i do?

I've tried with Database.Insert but i didn't understand how it work!
0 Likes
423 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Dim dbDwg As New Database
dbDwg.ReadDwgFile(fullBlockPathWithExtension, IO.FileShare.Read, True, "")
blockdefObjId = db.Insert(BlockName, dbDwg, True)

voila
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank you!
0 Likes