Palette/Dockable Control bar initial mode

Started by garcigj, January 10, 2014, 11:25:08 AM

Previous topic - Next topic

garcigj


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



José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

garcigj

Autocad 2014 saves in:

%USERPROFILE%\appdata\roaming\autodesk\autocad 2014\r19.1\Mylanguage\support\profiles\MyProfile\profile.aws


José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

garcigj

I think it could be programmed in NET: XmlDocument Class
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)
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

Fred Tomke

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, there is much written about it.
Here you can see how to open a palette in floating state.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

garcigj

#5
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)

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.
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

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 Wengerd (Outside The Box) / ManuSoft

garcigj

Owen,
I'm trying to OnSize event but I get good results for now

I'm working on this now.

thanks.
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)