기본 콘텐츠로 건너뛰기

라벨이 Group인 게시물 표시

How to remove anonymous groups with ARX?

Published date: 2005-02-08 ID: TS27355 Applies to: AutoCAD® 2005 Issue How do I remove anonymous groups from my drawing using ObjectARX? Solution When an end user creates a 'group' in AutoCAD, it may be an anynonmus group. However, all group (anonymous or otherwise) are stored in the Named Objects Dictionary under the key 'ACAD_GROUP'. If the group is anonymous, AutoCAD assigns it a value such as '*A1', '*A2' and so on. Although to the end user it's anonymous, the goup has a unique key name in the AutoCAD database. Users may add or remove entities from groups so it is possible to have empty groups. To remove an anonyomus group, consider the following code fragment - rmvAnonGrp(). Before running the code given below, creat few unnamed groups(anonymous groups). // Remove anonymous groups. // Note: No error cheking in following code void rmvAnonGrps() { // TODO: Implement the command Acad::ErrorStatus es; AcDbDictionary *...