Message 1 of 1
Problem of AcEdSSGetFilter::endEntsel() method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to use acedEntSel() to let user to select a special type entity.
So I use the AcEdSSGetFilter reactor as follow
void AcEdSSGetFilter::endEntsel(Acad::PromptStatus returnStatus, const AcDbObjectId& pickedEntity, const AcGePoint3d& pickedPoint, AcEdSelectionSetService& service)
{
service.remove(0); //comment this line will always return eNormal
returnStatus = Acad::PromptStatus::eRejected;
}
I want to prompts the user to select an entity again when he selects a wrong type (like the arxdoc said). But I can't distinguish whether the user cancel the acedEntSel() method or select a wrong type.
If I use service.remove(0) the acedEntSel() always return eError (same result with user cancel). It seems I can't change returnStatus success since it don't have a "&" flag.
What can I do to achieve my purpose?