
Not applicable
11-21-2019
12:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody!
I'd like to try something in AutoCAD / .Net for Dim pKeyOpts As PromptKeywordOptions = New PromptKeywordOptions ("").
In the case of texts, the abbreviations can indeed be defined by uppercase letters, e.g. Metal [M], tRockenbau [R] etc.
How can I do that with numbers, e.g. Regulate scale.
1: 1, 1: 2, 1: 5, 1:10, 1:20 here is always the first 1 taken over.
Is there a possibility, if so how?
Many thanks.
Dim pKeyOpts As PromptKeywordOptions = New PromptKeywordOptions("") pKeyOpts.Message = vbLf & vbLf & "Treffen Sie eine Auswahl / Bauteilschraffur:" pKeyOpts.Keywords.Add("Beschlag") pKeyOpts.Keywords.Add("Metall") pKeyOpts.Keywords.Add("Acryl") pKeyOpts.Keywords.Add("Kunststoff") pKeyOpts.Keywords.Add("Glas(Spiegel)") pKeyOpts.Keywords.Add("Schaumstoff") pKeyOpts.Keywords.Add("sToffe") pKeyOpts.Keywords.Add("Leder") pKeyOpts.Keywords.Add("Mauerwerk") pKeyOpts.Keywords.Add("tRockenbau") pKeyOpts.Keywords.Add("Corian(Granit&Stein)") pKeyOpts.Keywords.Add("Platten") pKeyOpts.Keywords.Add("Vollholz") pKeyOpts.Keywords.Add("kOmpaktplatte") pKeyOpts.Keywords.Default = "Platten" pKeyOpts.AllowNone = True Dim pKeyRes As PromptResult = acEd.GetKeywords(pKeyOpts)
Dim pKeyOpts As PromptKeywordOptions = New PromptKeywordOptions("") pKeyOpts.Message = vbLf & vbLf & "Wählen Sie einen Maßstab aus:" pKeyOpts.Keywords.Add("1:1") pKeyOpts.Keywords.Add("1:2") pKeyOpts.Keywords.Add("1:5") pKeyOpts.Keywords.Add("1:10") pKeyOpts.Keywords.Add("1:20") pKeyOpts.Keywords.Default = "1:1" pKeyOpts.AllowNone = True Dim pKeyRes As PromptResult = acEd.GetKeywords(pKeyOpts)
Wählen Sie einen Maßstab aus [1:1/1:2/1:5/1:10/1:20] <1:1>:
How do I get it now that the default is different possibly so:
Wählen Sie einen Maßstab aus [1:1/1:2/1:5/1:10/1:20] <1:1>:
Solved! Go to Solution.