OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: garcigj on January 10, 2014, 11:25:08 AM

Title: Palette/Dockable Control bar initial mode
Post by: garcigj on January 10, 2014, 11:25:08 AM

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:
I have not managed to locate them in:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\RXX.X\ACAD-XXXX\Profiles\MyProfile\OpenDCL\Dialogs



Title: Re: Palette/Dockable Control bar initial mode
Post by: owenwengerd on January 10, 2014, 01:02:19 PM
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.
Title: Re: Palette/Dockable Control bar initial mode
Post by: garcigj on January 10, 2014, 01:59:57 PM
Autocad 2014 saves in:

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


Title: Re: Palette/Dockable Control bar initial mode
Post by: garcigj on January 10, 2014, 02:23:59 PM
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)
Title: Re: Palette/Dockable Control bar initial mode
Post by: Fred Tomke on January 11, 2014, 01:27:54 AM
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
Title: Re: Palette/Dockable Control bar initial mode
Post by: garcigj on January 11, 2014, 04:12:36 AM
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.
Title: Re: Palette/Dockable Control bar initial mode
Post by: owenwengerd on January 11, 2014, 07:42:20 AM
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.
Title: Re: Palette/Dockable Control bar initial mode
Post by: garcigj on January 11, 2014, 07:51:11 AM
Owen,
I'm trying to OnSize event but I get good results for now

I'm working on this now.

thanks.