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
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
You can set the option using VBA SetCExpressionValue("dropOptions.strings",-1,"DROP") or using the BASIC editor ' Set a variable associated with a dialog box MbeSetAppVariable "DROP", "dropOptions.strings", -1& I did not try this, but it should work. Also, I am sure there is something available in MDL but I do not know if off the top of my head
Unknown said:SetCExpressionValue("dropOptions.strings",-1,"DROP")I am sure there is something available in MDL...
VBA SetCExpressionValue is a wrapper around MDL's mdlCExpression_api. Probably mdlCExpression_setValueForApp would do the trick.
Many of MicroStation's settings are published in the header files, so you can twiddle the bits directly using MDL. However, an increasing number of commands is implemented as separate apps. where the header files are not published. Our recourse is to do as you advise: record a VBA macro and translate the result into MDL.
Regards, Jon Summers LA Solutions