Set "Move Boundary with Reference" on/off with key in or preference?

Is there a way to turn off the "Move Boundary with Reference" setting with a key-in or UCF variable?  I need to move a number of references around WITHOUT moving the current reference boundary.  This should be a trivial process, but I'm at a loss on how to force "Move Boundary with Reference" off.

Parents
  • The quickest way I have found to find out whether a key-in is available for a particular setting or operation in MicroStation is to record a macro. I have opened the Move Reference, where the toggle for Move Boundary with Reference is located, and have turned off this toggle. The following is the VB code that was recorded for this operation which shows there is no specific key-in as such and I do not believe there is a configuration variable specifically for this toggle.

    '   Start a command
       CadInputQueue.SendCommand "DIALOG REFERENCE TOGGLE"
       CadInputQueue.SendCommand "REFERENCE MOVE"
    '   Set a variable associated with a dialog box
       SetCExpressionValue "tcb->msToolSettings.additionalRefTools.dontMoveBoundary", 1, ""
       CadInputQueue.SendCommand "REFERENCE MOVE"
       CommandState.StartDefaultCommand

    Depending on the type of settings that is being changed while working in MicroStation it can be different where this information is being stored for use next time this dialog is opened. Most settings, like moving the location of dialogs or active colour etc, would be stored within the User Preference File (UPF). Most of the toggles within the dialogs, though, are actually stored within the DGN file itself. So what you should noticed is that if you set this toggle to be off, save the DGN file, then Save Settings. The next time you open this particular DGN file that toggle will be off but if you open a different DGN file the toggle will be on.

    I think that defining these type of toggles to be either on or off all the time will be a difficult option to be able to configure. You could define it using VB code but that would really be getting too complex an option. I would suggest that this type of setting could be defined within the DGN seed file instead.

    Regards
    Andrew Bell
    Technical Support
    Bentley Systems

Reply
  • The quickest way I have found to find out whether a key-in is available for a particular setting or operation in MicroStation is to record a macro. I have opened the Move Reference, where the toggle for Move Boundary with Reference is located, and have turned off this toggle. The following is the VB code that was recorded for this operation which shows there is no specific key-in as such and I do not believe there is a configuration variable specifically for this toggle.

    '   Start a command
       CadInputQueue.SendCommand "DIALOG REFERENCE TOGGLE"
       CadInputQueue.SendCommand "REFERENCE MOVE"
    '   Set a variable associated with a dialog box
       SetCExpressionValue "tcb->msToolSettings.additionalRefTools.dontMoveBoundary", 1, ""
       CadInputQueue.SendCommand "REFERENCE MOVE"
       CommandState.StartDefaultCommand

    Depending on the type of settings that is being changed while working in MicroStation it can be different where this information is being stored for use next time this dialog is opened. Most settings, like moving the location of dialogs or active colour etc, would be stored within the User Preference File (UPF). Most of the toggles within the dialogs, though, are actually stored within the DGN file itself. So what you should noticed is that if you set this toggle to be off, save the DGN file, then Save Settings. The next time you open this particular DGN file that toggle will be off but if you open a different DGN file the toggle will be on.

    I think that defining these type of toggles to be either on or off all the time will be a difficult option to be able to configure. You could define it using VB code but that would really be getting too complex an option. I would suggest that this type of setting could be defined within the DGN seed file instead.

    Regards
    Andrew Bell
    Technical Support
    Bentley Systems

Children
  • Unknown said:

    The quickest way I have found to find out whether a key-in is available for a particular setting or operation in MicroStation is to record a macro. I have opened the Move Reference, where the toggle for Move Boundary with Reference is located, and have turned off this toggle. The following is the VB code that was recorded for this operation which shows there is no specific key-in as such and I do not believe there is a configuration variable specifically for this toggle.

    '   Start a command
       CadInputQueue.SendCommand "DIALOG REFERENCE TOGGLE"
       CadInputQueue.SendCommand "REFERENCE MOVE"
    '   Set a variable associated with a dialog box
       SetCExpressionValue "tcb->msToolSettings.additionalRefTools.dontMoveBoundary", 1, ""
       CadInputQueue.SendCommand "REFERENCE MOVE"
       CommandState.StartDefaultCommand

    Depending on the type of settings that is being changed while working in MicroStation it can be different where this information is being stored for use next time this dialog is opened. Most settings, like moving the location of dialogs or active colour etc, would be stored within the User Preference File (UPF). Most of the toggles within the dialogs, though, are actually stored within the DGN file itself. So what you should noticed is that if you set this toggle to be off, save the DGN file, then Save Settings. The next time you open this particular DGN file that toggle will be off but if you open a different DGN file the toggle will be on.

    I think that defining these type of toggles to be either on or off all the time will be a difficult option to be able to configure. You could define it using VB code but that would really be getting too complex an option. I would suggest that this type of setting could be defined within the DGN seed file instead.

    It dawned on me that I could do exactly that shortly after posting the question yesterday, so I just called the one line VBA in my batch script.