如何给Jig设置单位
protected override SamplerStatus Sampler(JigPrompts prompts){
JigPromptPointOptions jigOpts = new JigPromptPointOptions();
jigOpts.UserInputControls =
UserInputControls.Accept3dCoordinates |
UserInputControls.NoZeroResponseAccepted |
UserInputControls.NoNegativeResponseAccepted |
UserInputControls.NullResponseAccepted;
switch (m_Count)
{
case -1:
jigOpts.Message = "\n指定第一点:";
break;
case 0:
default:
jigOpts.Cursor = CursorType.RubberBand;
jigOpts.SetMessageAndKeywords("\n指定下一点或 [输入长度(m)]:", "4.5");
jigOpts.UseBasePoint = true;
jigOpts.BasePoint = m_StartPoint;
break;
}
PromptPointResult res = prompts.AcquirePoint(jigOpts);
m_Status = PolyLineJigStatus.Add;
这个单位默认是毫米我要怎么才能更改单位呢?比如改成米或者英寸?
页:
[1]