.NET

Reply
Active Contributor
huaxiamengqing
Posts: 35
Registered: ‎05-23-2012
Message 1 of 4 (167 Views)

about database.insert()

167 Views, 3 Replies
09-02-2013 05:51 PM

Hi guys! Have anyone used this function?

Autodesk.AutoCAD.DatabaseServices.Database.Insert(Autodesk.AutoCAD.Geometry.Matrix3d, Autodesk.AutoCAD.DatabaseServices.Database, Boolean)

What's the Matrix3d  when I insert a database from other file?

Thank you!

Employee
artc2
Posts: 199
Registered: ‎06-08-2010
Message 2 of 4 (148 Views)

Re: about database.insert()

09-02-2013 08:06 PM in reply to: huaxiamengqing

Here's the docs

 

Inserts the Model Space of the database pointed to by dataBase into the Model Space of the database invoking the insert() function. All objects being inserted have the xform matrix passed into their transformBy() function during the insertion process. 

The preserveSourceDatabase argument determines whether the source database dataBase is left intact or not. The default value of the argument is true. In that case, objects from the source database are copied to the destination database and the source database is not changed. If the caller passes false for this argument, objects from the source database could be physically moved into the destination database. The latter runs faster, but it leaves the source database dependent on the destination database. The caller should make sure that the source database is deleted either immediately or at least before the destination database is deleted.

 

Active Contributor
huaxiamengqing
Posts: 35
Registered: ‎05-23-2012
Message 3 of 4 (109 Views)

Re: about database.insert()

09-03-2013 10:48 PM in reply to: artc2

Can you give any simple example? Thank you for your reply!

Employee
artc2
Posts: 199
Registered: ‎06-08-2010
Message 4 of 4 (92 Views)

Re: about database.insert()

09-04-2013 08:28 AM in reply to: huaxiamengqing

Sorry, I don't have any sample code.  Perhaps someone else here does.

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