Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Why does Editor.Drag return a PromptStatus.Other if tab key was pressed?
Why does Editor.Drag return a PromptStatus.Other if tab key was pressed?
I would like to create a line by using a Jig and an AlignedDimension and a Point3AngularDimension dynamic dimension, comparable what the PLINE command displays.
When I start the Jig with Editor.Drag(myJig), enter a value manually in the AlignedDimension and hit the Tab key the Drag method returns with a PromptStatus.Other status. I would like to behave it like the PLINE command where the tab key switches to the Point3AngularDimension and locks the AlignedDimension.
How can I avoid the Drag method from returning?
Regards,
Freddy
Code snippets:
Caller:
public LineString CreateLine(string prompt)
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptPointResult pointResult = ed.GetPoint(prompt);
PromptStatus status = pointResult.Status;
if (status == PromptStatus.OK)
{
AddPoint(pointResult.Value);
}
try
{
while (status == PromptStatus.OK || status == PromptStatus.Keyword)
{
//LastPoint was previously added point
PointJig jig = new PointJig(prompt, LastPoint);
PromptResult res = ed.Drag(jig);
status = res.Status;
// A new point was added
if (res.Status == PromptStatus.OK)
{
//logic omitted
}
else if (res.Status == PromptStatus.Keyword)
{
//handle keyword logic omitted
}
if (res.Status == PromptStatus.Other)
{
Debug.Fail("Tab key was pressed in dyn dimension");
}
}
}
return lineString;
}