Brien Bastings:
If your tool is not going to make copies or modify the elements at all you just want to override SetLocateCriteria to call mdlLocate_allowLocked to allow these elements to be selected. HTH
OK - there must something else to do as well. I still cannot select elements from a reference file:
virtualvoid SetLocateCriteria () override;
and:
void SelectTool::SetLocateCriteria ()
{
mdlLocate_allowLocked(); // to allow elements in reference file to be located
}
The tool has an OnPostLocate() that is firing when a reference file element is located (autolocate ON), yet a datapoint doesn't fire OnElement Modify(). I've got NeedAcceptPoint() returning false. I'm returning true from OnPostLocate(). What else do I need? I've even included:
virtual bool IsModifyOriginal () override { returntrue; }
thinking maybe it's required because although I'm not actually modifying the element from the reference file, it may need to return true in order for OnElementModify() to fire. It didn't make any difference. What else could be preventing OnElementModify() from firing? If I pick elements in the model that are NOT in the reference file, things work as expected.
Thanks,
Bruce