Search code examples
c#.netvb.netautocadautocad-plugin

How to combine 2 entities as 1 in Autocad .net


enter image description here

I'm making an autocad plugin and i want to create a new entity that is a combination of a line and the text.If i select the line the text is selected and backwords when i delete the line delete the text etc etc.How to treat them as one object referencing eachother?Is this possible?


Solution

  • I recommend using groups. Below is a link on how to access groups, I'm sure that site has more information on creating groups.

    Users can control whether objects are selected with the group based on the system variable, PICKSTYLE. you can use ctrl+ h to toggle the PICKSTYLE value.

    http://adndevblog.typepad.com/autocad/2012/04/how-to-detect-whether-entity-is-belong-to-any-group-or-not.html