protected override SamplerStatus Sampler(JigPrompts prompts)
{
JigPromptPointOptions opt = new JigPromptPointOptions();
opt.UserInputControls =
(UserInputControls.Accept3dCoordinates
| UserInputControls.NoNegativeResponseAccepted
| UserInputControls.NullResponseAccepted);
if (m_leader == null)
opt.Message = "\nstart point: ";
else
{
// GovernedByOrthoMode is needed for orthomode
opt.UserInputControls |= UserInputControls.GovernedByOrthoMode;
opt.BasePoint = m_leader.VertexAt(m_leader.NumVertices);
// you can't use opt.UseBasePoint = true
// when ortho is on then not works
if (m_leader.IsSplined)
opt.SetMessageAndKeywords(
"\nSpecify Next point or [Line/Undo]: ",
"Line Undo");
else
opt.SetMessageAndKeywords(
"\nSpecify next point or [Spline/Undo]: ",
"Spline Undo");
}
PromptPointResult res = prompts.AcquirePoint(opt);
}
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |