Anyone has used the CustomObjectSnapMode class,i can't find any information thru google, i don;t know if i have understand these classes righ,but it doesn't work. My simplify codes listed as below.
and another ques. is while the ObjectSnapInfo's property "SnapPoints" is read-only, how can i append the custom point into snap ?
public void InitCustomOSnap()
{
AddObjectSnapInfo callback=new AddObjectSnapInfo(ObjectSnapInfoAdded);
CustomObjectSnapMode cosMode = new CustomObjectSnapMode("TP", "TopoPoint", "TopoPoint of EDS", glyph);//glyph is defined previously
Symbol ts = new Symbol();
cosMode.ApplyToEntityType(ts.GetRXClass(), callback);
}
public void ObjectSnapInfoAdded(ObjectSnapContext Context, ObjectSnapInfo Result)
{
//handle the snappoint
}