.NET

Reply
Active Contributor
35 Posts
0 Kudos
Registered: ‎05-23-2012
Post 1 of 4

about database.insert()

203 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
229 Posts
63 Kudos
Registered: ‎06-08-2010
Post 2 of 4

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
35 Posts
0 Kudos
Registered: ‎05-23-2012
Post 3 of 4

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
229 Posts
63 Kudos
Registered: ‎06-08-2010
Post 4 of 4

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
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!