• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Contributor
    Posts: 17
    Registered: ‎04-16-2007

    How to insert a block from file

    96 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!
    Please use plain text.
    Valued Contributor
    Posts: 57
    Registered: ‎07-10-2008

    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
    Please use plain text.
    Contributor
    Posts: 17
    Registered: ‎04-16-2007

    Re: How to insert a block from file

    11-27-2008 10:53 AM in reply to: fantarama
    Thank you!
    Please use plain text.