.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CustomObjectSnapMode question

0 REPLIES 0
Reply
Message 1 of 1
lapiseast
240 Views, 0 Replies

CustomObjectSnapMode question

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
}
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost