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.

  • 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

  • can you  provide a picture  of what your trying to achieve ... I not  sure what  you mean.. also more detail ...

    Lorys

    Now Retired 25 Nov 2022

    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 

  • Lorys

    This screen capture showing the Move Reference tool available in the Reference dialog is where the "Move Boundary with Reference" toggle is defined that I believe this user is trying to define with a key-in or UCF.

    Regards
    Andrew Bell
    Technical Support
    Bentley Systems

  • Hi,

    in my opinion the best solution depends on how you will move the references and what workflow do you prefer.

    If you will move the references manually, you can use key-in set item toolsettings moverefboundarytoggle=0 to switch off Move Boundary with References switch. To use this key-in, the tool has to be active, so you can e.g. assign full key-in reference move;set item toolsettings moverefboundarytoggle=0 to a function key or to create own tool usign Customization tools available in MicroStation.

    I agree with Andrew there is no standard way how to switch off it by default for all design files, because this setting is stored in the design file, not in user preferences.

    With regards,

      Jan

    MISSING RESOURCE: VerifiedBy NFOtte 

  • 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.