.NET

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

about database.insert()

194 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: 229
Registered: ‎06-08-2010
Message 2 of 4 (175 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 (136 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: 229
Registered: ‎06-08-2010
Message 4 of 4 (119 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.