phi03c 发表于 2020-9-22 20:26:57

Adding Objects to Model and Paper Space

You can use the following procedures of the AcadDatabase class to add AutoCAD objects to the model and paper space. Some of these routines accept a single object, others accept object lists (DBObjectCollection) as parameters.
·      public static ObjectId AddToCurrentSpace(this Entity ent)·      public static ObjectId AddToCurrentSpace(this Entity ent, Database db)·      public static ObjectIdCollection AddToCurrentSpace(this Database db,DBObjectCollection objects)·      public static ObjectId AddToModelSpace(this Entity ent)·      public static ObjectId AddToModelSpace(this Entity ent, Database db)·      public static ObjectIdCollection AddToModelSpace(this Database db,DBObjectCollection objects)·      public static ObjectId AddToModelSpace(this Entity ent, Database db,Transaction tr)·      public static ObjectId AddToPaperSpace(this Entity ent)·      public static ObjectId AddToPaperSpace(this Entity ent, Database db)·      public static ObjectId AddToPaperSpace(this Entity ent, Database db,Transaction tr)
·      public static ObjectIdCollection AddToPaperSpace(this Database db,DBObjectCollection objects)


**** Hidden Message *****



dnbcgrass 发表于 2020-9-23 10:34:12

回复学习学习!{:1_12:}{:1_12:}{:1_12:}

brainstorm 发表于 2020-9-26 23:38:17

感谢分享 认真学习

tiancao1001 发表于 2021-4-16 23:37:52

什么意思,学习一下

tiancao1001 发表于 2021-4-16 23:38:55

什么意思,学习一下

qq1254582201 发表于 2021-4-19 21:55:12

回复学习学习!

zz1875817365 发表于 2022-10-12 06:41:23

学习学习@哦谢谢分享

dnbc 发表于 2025-11-13 14:33:40

分享来学习学习{:1_12:}{:1_12:}{:1_12:}
页: [1]
查看完整版本: Adding Objects to Model and Paper Space