ich arbeite mit VB.NET. In VBA konnte ich ohne Probleme bei der Benutzerauswahl von Objekten zusätzlich Keywords abfangen. Beispiel:
Code: Objekte wählen [Ausgabepfad]:
Wenn der Benutzer hier anstatt Objekte auszuwählen ein 'a' eingegeben hat, konnte ich das wie gesagt in VBA mit try and error gut abfangen und darauf reagieren. Wie gestaltet sich so etwas in .NET?
ein Beispiel, wobei Du dafür auch Beispiele auch im ARX-Kit findest, wenn mich nicht alles täuscht
Code:Dim tKeyOptions As EditorInput.PromptKeywordOptions = New EditorInput.PromptKeywordOptions(vbCr & "Punkte definieren über: ") tKeyOptions.Keywords.Add("Zeigen") tKeyOptions.Keywords.Add("maximalabstand zu Achse") tKeyOptions.AllowArbitraryInput = False tKeyOptions.AppendKeywordsToMessage = True Dim tRes As EditorInput.PromptResult = AcadDoc.Editor.GetKeywords(tKeyOptions)
Subtraction, intersection, and union of solids. With or without a gap. Preserving material and face coloring. Preserving source objects and the subtrahend.