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.
Unknown said:If you don't mind me asking, where'd you pick up the awesome trick?
Well ... believe or not, it's mentioned in MicroStation help, specifically in a chapter about customization and how own tool can be created (because this is the mechanism how own tool can start with predefined settings).
It's also mentioned in MicroStation wiki article.
You should be aware it's always specific to an active tools, so the only workflow is to start the tool and in the next step to use a proper set item toolsettings key-in (one or more, if required). It should work with all MicroStation tools, but I remember in the past I found some tools that didn't support it.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said: 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
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.
Awesome, this is exactly what I was hoping to figure out! If you don't mind me asking, where'd you pick up the awesome trick? I figured it had to be possible, but couldn't find any reference material online.
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.
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.
Answer Verified By: NFOtte