.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

about database.insert()

3 REPLIES 3
Reply
Message 1 of 4
huaxiamengqing
679 Views, 3 Replies

about database.insert()

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!

3 REPLIES 3
Message 2 of 4
artc2
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.

 

Message 3 of 4
huaxiamengqing
in reply to: artc2

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

Message 4 of 4
artc2
in reply to: huaxiamengqing

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost