Problem Jig and Snap

Problem Jig and Snap

Anonymous
Not applicable
1,007 Views
2 Replies
Message 1 of 3

Problem Jig and Snap

Anonymous
Not applicable

Hi,
i coded a simple utility that allow you to quote an angle with the DrawJig.
In the sampler i have this code

PromptPointResult ppr = prompts.AcquirePoint("Insert second point");
if (ppr.Value.DistanceTo(_point) < 0.01)
return SamplerStatus.NoChange;
if (ppr.Status == PromptStatus.OK)
_point = ppr.Value;
return SamplerStatus.OK;

I can't explain the problem well so i posted the gif, i don't know why but the snap doesn't work.

0 Likes
1,008 Views
2 Replies
Replies (2)
Message 2 of 3

fenton_webb
Autodesk
Autodesk

I think you need to set the BasePoint property of your Jig.




Fenton Webb
AutoCAD Engineering
Autodesk

0 Likes
Message 3 of 3

fenton_webb
Autodesk
Autodesk

I mean, the base point of the "Pick next point" input... Setup a PromptPointOptions class and set the BasePoint=_point and UseBasePoint=True




Fenton Webb
AutoCAD Engineering
Autodesk

0 Likes