.NET

Reply
Contributor
17 Posts
0 Kudos
Registered: ‎04-16-2007
Post 1 of 3

How to insert a block from file

105 Views, 2 Replies
11-21-2008 07:38 AM
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!
Valued Contributor
57 Posts
0 Kudos
Registered: ‎07-10-2008
Post 2 of 3

Re: How to insert a block from file

11-27-2008 09:00 AM in reply to: fantarama
Dim dbDwg As New Database
dbDwg.ReadDwgFile(fullBlockPathWithExtension, IO.FileShare.Read, True, "")
blockdefObjId = db.Insert(BlockName, dbDwg, True)

voila
Contributor
17 Posts
0 Kudos
Registered: ‎04-16-2007
Post 3 of 3

Re: How to insert a block from file

11-27-2008 10:53 AM in reply to: fantarama
Thank you!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!