When selecting the 'Drop Element' command in a MicroStation session, the tool settings box offers a selection of element types for the command to operate on. By default, complex and shared cells are selected. To issue this command programmatically is not an issue, but I would like to also change the default selection types (Include linestrings & shapes). Is there structure available to set these selections automatically before issuing the command??
LMD
Further to others' suggestions, you can also preset the "Drop Element" tool using key-in: "set item toolsettings <option> = <1|0>"
The only thing with using the "set item toolsettings" key in is that you can only use it after a tool has been run. So the sequence of key-in would be:
drop element
set item toolsettings <option1> = <1|0>
set item toolsettings <option2> = <1|0>
...
or to combine them into a singleline:
drop element;set item toolsettings <option1> = <1|0>;set item toolsettings <option2> = <1|0>;...
If you want more information on how to utilise the key in, you can refer to these 2 AskInga posts:
http://communities.bentley.com/communities/other_communities/askinga/w/askinga/determining-keyins-associated-with-tool-settings
http://communities.bentley.com/communities/other_communities/askinga/w/askinga/how-to-extract-keyins-for-the-tool-settings-in-microstation-v8i
Note that there's a limit on the number of characters in a combined key-in, so you may not be able to preset all the tool options using just 1 keyin. If you find yourself there, VBA would be the best way to go.
For interests sake , what is the limit on characters in a key combination?
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Unknown said:For interests sake , what is the limit on characters in a key combination?
The answer is 42 :)
Unknown said:Seriously though, 255 is the limit that you can type into the key-in browser (at least that's what I see on SS3), I would imagine the same limit would apply for accudraw keyin shortcut, hotkeys etc.
if you run out of characters in a keyin then download the old keyins I just posted and substitute as many primitives and 2 letter keyins as you can get to still run in your current version of msnt....