本文整理汇总了C#中Autodesk.AcquirePoint方法的典型用法代码示例。如果您正苦于以下问题:C# Autodesk.AcquirePoint方法的具体用法?C# Autodesk.AcquirePoint怎么用?C# Autodesk.AcquirePoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Autodesk
的用法示例。
在下文中一共展示了Autodesk.AcquirePoint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Sampler
protected override Autodesk.AutoCAD.EditorInput.SamplerStatus Sampler(Autodesk.AutoCAD.EditorInput.JigPrompts prompts)
{
JigPromptPointOptions jigOpts = new JigPromptPointOptions();
jigOpts.UserInputControls = UserInputControls.GovernedByOrthoMode | UserInputControls.NullResponseAccepted;
jigOpts.UseBasePoint = true;
jigOpts.BasePoint = (Point3d)this.startPoint;
jigOpts.Message = "\n 选择下一点或者Enter结束";
PromptPointResult res = prompts.AcquirePoint(jigOpts);
Point3d positionTemp = res.Value;
this.endPoint = positionTemp;
if (res.Status == PromptStatus.Cancel || res.Status == PromptStatus.None)
return SamplerStatus.Cancel;
else
return SamplerStatus.OK;
}