Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我把墙分成几部分。现在我想移除零件并保留原来的墙壁。如何删除/删除/撤消已创建的部分?我有我想删除的partids。
.ActiveDoc.Delete(partid) 不起作用并引发错误。
您可以通过删除与源元素关联的 PartMaker 来完成此操作:
revitDoc.Delete(PartUtils.GetAssociatedPartMaker(revitDoc, SourceElementId).Id);
玩得开心!