[ORD VBA] Automate Toggle of "Use Active Feature" Feature Definition Toolbar button

Hi,

I'm trying to automate the pre-filling of the "Set Feature Definition" dialog in VBA and can get it to work if I select the Feature Definition in the Feature Definition toolbar and select the "Use Active Feature" function of the Toolbar.

The issue I'm having is that even if I preset the "Use Active Feature" setting as enabled in the Preference Civil settings or enable it via a keyin, it doesn't actually activate the command (just toggles the button). It seems that it physically needs to be activated by the user.

Has any one found a way to get the "Use Active Feature" command to activate without physically activating the Toolbar button?

Regards,

Mark

Parents Reply Children
  • It did not seem to work consistently.

    1. The toolbar, if open, did not reflect the change unless hovered over.
    2. I believe unless hovered over, it often did not actually activate.
    3. We tried sending view commands and a reset to cause it to refresh (a trick we sometimes had to use with tool settings to get it to refresh) and that did not help.

    There may have been more, but I tested it and one other person, We both worked without the others knowledge and when we discussed it finally, we both were in agreement that the efforts had been less than successful.

    That said, if it works in ORD, that's a bonus - when we finally have a production workspace.


    Charles (Chuck) Rheault
    CADD Manager

    MDOT State Highway Administration
    Maryland DOT - State Highway Administration User Communities Page

    • MicroStation user since IGDS, InRoads user since TDP.
    • AutoCAD, Land Desktop and Civil 3D, off and on since 1996