Palettes and ContrlosBars are initialized the first time anchored to the application as parameter "Dockable Sides".
To avoid the error BlockView and Palettes are mounted above each other:
- Is there any way to initialize ("the first time," I know that after its location is saved) in Float mode.?
- Save autocad or windows location of these windows in the registry?
I have not managed to locate them in:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\RXX.X\ACAD-XXXX\Profiles\MyProfile\OpenDCL\Dialogs
I believe those settings are saved in FixedProfile.aws. I'm not sure if it would work to modify that file before loading the form, but that would be the obvious thing to try. Maybe someone else has some experience they can share.
Autocad 2014 saves in:
%USERPROFILE%\appdata\roaming\autodesk\autocad 2014\r19.1\Mylanguage\support\profiles\MyProfile\profile.aws
I think it could be programmed in NET: XmlDocument Class (http://support.microsoft.com/kb/301233/en-us)
But the damage possible programming error in the file can be disastrous. ( :-\ very afraid)
Although, you can always make a backup
(as you explain to the user if it goes wrong)
Hi, garcigj,
once upon a time I did some changes in the FixedProfile.aws and .\<CurrentProfile>\Profile.aws. But I had to see that AutoCAD overides my changes which I made at AutoCAD runtime when I close AutoCAD.
Have a look at this topic (http://www.opendcl.com/forum/index.php?topic=1042.0), there is much written about it.
Here (http://www.opendcl.com/forum/index.php?topic=1042.msg7683#msg7683) you can see how to open a palette in floating state.
Regards, Fred
Excellent research Fred.
I had not read this and is very interesting.
I will try to implement something with all this way to control the floating palettes, at least temporarily while the issue is resolved BlockView error in a future version of ODCL.
If the application only the usase I would not worry about these issues, but I need to use that many users.
Anyway, the problem would never solved BlockView because anyone can minimize the window of Autocad.
You can also attach pallets on top of each other manually. see (problems BlockView (http://www.opendcl.com/forum/index.php?topic=2086.0))
I worry about locating the palette settings in "profile.aws" with "CLSID"
-if it does not exist, no problem.
-If the program has been used in a previous installation, the "CLSID" already exists and can not know what is.
-If we double-palette a section with two "CLSID" different. What is it?
I'll try to walk the tree "profile.aws" through "MSXML.DOMDocument" from <ToolsInfo> Palette Palette section and try to locate <Name> = TitelBarText> name.
Thanks Fred.
If your goal in all this is to prevent the blockview from being resized to zero, I think it is the wrong solution. Better to simply set limits so that the control size cannot become zero in any dimension.
Owen,
I'm trying to OnSize event but I get good results for now
I'm working on this now.
thanks.