Is it possible to use a load statement in a profile to automatically load/unload a cuix?
Solved! Go to Solution.
Solved by dgorsman. Go to Solution.
That kind of depends if you are using the term "profile" as normally defined for AutoCAD. Part of the AutoCAD profile is the storage of search paths, including the Main and Enterprise CUIx files. These can both include partial CUIx files. So it is possible to have CUIx files load automatically, based on an AutoCAD profile, without any kind of "load" statement/command/whatever.
To have a partial CUIx load "on the fly" ie. not loaded at start-up but called through a command or automation, requires some additional automation not only for loading it but also for adjusting the active workspace to include the desired UI elements from the CUIx. Loading on the fly like this will always add the new CUIx as partial to the Main CUIx, unless it is deliberately replacing either the Main or Enterprise CUIx (possible but can create massive headaches).
Here's my issue. The AutoCAD profile is being loaded from a "profile switcher"application which does just that. It loads stored partial profiles. Is there a way to add a load statement to the profile (.arg) to load a partial cuix?
No such thing as a "partial profile". ARG files are ignored if the profile name is already present, unless there is some automatic profile deletion. If your profiles are being managed for you, then in my experience trying to get around it will likely be more work than you will save.
A little more clear, thanks. Given that the switching is customized, you need to have that system amended to make a call to load the client CUIx on the fly. That will load it as partial to the current Main, which will give users the ability to add the content (toolbars, menus, etc.) to their workspace.
That's kind of what I thought but hoping I was wrong.
Thank you very muck for your quick response. I really appreciate you sharing.
I've done an Autocad Add-in Tool loaded via arx.
I now have partial cuix with include every command and I can load it in my workspace,
but i would like to prepare some kind of setup in order to load the cuix on the fly when i call my arx.
Someone can give me some help?
dgorsman?
Can't find what you're looking for? Ask the community or share your knowledge.