Code Red => .NET => Topic started by: latour_g on June 29, 2022, 01:23:14 PM
Title: PromptNestedEntityOptions exclude object
Post by: latour_g on June 29, 2022, 01:23:14 PM
Hi everyone,
Is it possible to exclude objects when using PromptNestedEntityOptions ? The issue is I want to select attributes but when there is hatch under it, it doesn't work or sometime it does work and sometime it doesn't work, depending of the picked point on the attribute.
So I would like the hatch to be ignore or only the attributes to be include.
Or would there be another way to select attribute with a picked point ?
Title: Re: PromptNestedEntityOptions exclude object
Post by: Chumplybum on June 29, 2022, 07:27:33 PM
Haven't tested this, but you could try SelectionAddedEventHandler, example here: https://www.keanw.com/2011/08/preventing-autocad-objects-from-being-selected-using-net.html (https://www.keanw.com/2011/08/preventing-autocad-objects-from-being-selected-using-net.html)
Title: Re: PromptNestedEntityOptions exclude object
Post by: latour_g on July 05, 2022, 10:30:45 AM
Jeff H : I was full of hope but unfortunately GetContainers() only contains the hatch.
Chumplybum : Thanks I will check if I can use that.