.NET

Reply
Contributor
fantarama
Posts: 17
Registered: ‎04-16-2007
Message 1 of 3 (103 Views)

How to insert a block from file

103 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
bert.vanpeteghem
Posts: 57
Registered: ‎07-10-2008
Message 2 of 3 (103 Views)

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
fantarama
Posts: 17
Registered: ‎04-16-2007
Message 3 of 3 (103 Views)

Re: How to insert a block from file

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community