Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi
i'm trying to write a command using c# based on a selected polyline,
the problem is to get the direction of polyline,
i want to get the location of the point at which the user picked the polyline so i can decide the direction somehow,
or im wondering if there is a way to do something as _AeccCreateAlignmentEntities does (atteched photo),
any help will be appreciated.
#region Asking the user to accept the direction or reverse;
var reverseOption = new PromptKeywordOptions("\nPress Enter to accept the direction or ");
reverseOption.Keywords.Add("Reverse");
reverseOption.AllowNone = true;
var reverseRes = editor.GetKeywords(reverseOption);
if (reverseRes.Status == PromptStatus.None)
{
editor.WriteMessage($"\n You accepted the direction");
}
else if (reverseRes.StringResult == "Reverse")
{
editor.WriteMessage($"\ndirection has reversed ({reverseRes.Status})");
// TO DO
}
else
{
return;
}
#endregion
Solved! Go to Solution.