THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 26/09/2012 at 08:33, xxxxxxxx wrote:
Hi.
If you check the settings of the snap on the R13 is.
BaseContainer* bc=doc->GetSettingsInstance(DOCUMENTSETTINGS_MODELING);
if(bc->GetBool( SNAP_ENABLE))
{
****
}
If you want to set the snap.
BaseContainer bc;
bc.SetBool( SNAP_ENABLE, TRUE);
doc->SetData(DOCUMENTSETTINGS_MODELING,bc);
If you look at the position of the snap when you.
AutoAlloc<DetectSnapping> snap;
if (!snap) return FALSE;
snap->Init(doc, bd, NULL, Vector(), 0, FALSE, TRUE, TRUE);
Vector delta;
if(snap->IsEnabled(doc))
{
if (snap->SnapTo(pos, δ))
{
pos += delta;
}
}
All the code does not work in R14.
What I want how I write?
Thanks in advance.