.NET

Reply
Active Member
giackserva
Posts: 7
Registered: ‎06-18-2012
Message 1 of 3 (197 Views)

Problem Jig and Snap

197 Views, 2 Replies
02-26-2013 04:32 AM

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.

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 2 of 3 (151 Views)

Re: Problem Jig and Snap

02-28-2013 09:52 AM in reply to: giackserva

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





Fenton Webb

Developer Technical Services

Autodesk Developer Network


ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 3 of 3 (149 Views)

Re: Problem Jig and Snap

02-28-2013 09:53 AM in reply to: fenton.webb

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

Developer Technical Services

Autodesk Developer Network


Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.