Drop Element

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

Parents Reply
  • 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

Children
No Data