Hi,
I've tried to add a command to the context menu when right clicking on a reference in the reference manager. Want to add it in my dgnlib but don't know how.
Thanks for any hints
Marcel
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Marcel - to expand on Jan's response, this is the right-click context menu the appears when an element in a reference file is attached. You can modify this context menu in your dgnlib and add any command or command string.
Unknown said:That's what I'm looking for, I provide KeyIn's but can't find a way to call them from Reference Manager Context Menu.
Can you describe what it is you would want to actually do that is to say how you do those steps now manually... as I don't understand what your trying to achieve... if we had more detail we could work out if its possible.. but it sounds like you could create some menus of your own ...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
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
I dont think it can be done , however you can just add your extra mdls as menus to the right mouse button menu and if you were to put REF_as the beginning of the MDL name or menus listing it would prompt users that only works on refs, and in your mdl you could put subroutine to stop it working on non ref files and dialog not a ref file!
Unknown said:Jan mentioned some posts before that its not possible. Thanks anyway for your thoughts. Kind regardsMarcel
No it is possible for the RMB menu but just not the Context Sensitive Menu for ref detection .. so it wont auto sense the object is a ref file object and launch the ref context rmb menu as that menu cant be edited.. but just the RMB menus can be customised and have extras...
but as I said before if you were to Put REF_application name and build a pop up message NOT A REF FILE OBJECT in each of your custom ref tools that it could sense its not a ref file element and close the application, would give you a working alternative scenario... I have added my own favorite tools to the rmb menu its just not context sensitive ie Bring to Front and another Self Ref attach ( self ref key in is RF=.) handy for when using Sheet Models.. you also need to train users how to use it , so tell them to hover over an empty space then press and hold RMB your extra items now will appear in the RMB menu....
BTW you have to be careful not to add too many , my personal pref is no more than 4 or 5 extras as the menus grow too long you dont save anything using it and also deters users from trying to change old habits and switch to using the RBM.. there is a lot of change resistance from long time users.. even me...