Programmatically anchoring command line

Programmatically anchoring command line

Jedimaster
Collaborator Collaborator
1,279 Views
8 Replies
Message 1 of 9

Programmatically anchoring command line

Jedimaster
Collaborator
Collaborator

I know how to programmatically turn on and off the command line. I would like to be able to dock/anchor to the bottom of the screen. I am looking for a LISP, .net or VBA solution.

 

Thank you in advance 

0 Likes
1,280 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable

Drag it to the bottom, sometimes to takes a few times to dock, Make sure you set your workspace to save changes.

0 Likes
Message 3 of 9

Jedimaster
Collaborator
Collaborator

Thank you for the response. I know how to dock the command line. What I am doing is writing a routine that automatically set all our paths,  locates a loads cuix files, sets menubar, positions toolbars. sets all display settings. 

0 Likes
Message 4 of 9

Anonymous
Not applicable

Just a ?, since you are loading either a custom cui or a pre-existing (ACAD) cui, wouldn't those settings already be a part of the main cui on the palette side?

0 Likes
Message 5 of 9

Jedimaster
Collaborator
Collaborator

No this is going on a cui that may be in  any state from raw out out the box. Mater of fact instructed it grab from  install acad.cuix if corrupt. 

0 Likes
Message 6 of 9

Sea-Haven
Mentor
Mentor

Have you looked at using a profile ?

 

menuload for mnu's

 

; resets the paths usefull for update versions of Autocad
; by AlanH 2011
; This sets a reference to the install path of your product
; the gets are their for info maybe other use
; use this to find other settings 
(vlax-dump-object (vla-get-files (vla-get-preferences (vlax-get-Acad-object))) T)

 

0 Likes
Message 7 of 9

Jedimaster
Collaborator
Collaborator

Yes I can have the user load a cui with the Command Line already docked at the bottom. Doing this it overrides all the other setting's the user's have. This a routine for initial setup or for oh sh** moments. If the command line is not docked it effects the F2 function of the text screen. I just want some way to force the command line to dock, no mater the profile, CUI, workspace, day of the week or country of origin.

0 Likes
Message 8 of 9

Sea-Haven
Mentor
Mentor

Understand have you googled, some of these things are stored as registery entries under a user profile. I know the tool bars can have a X Y etc 

 

Have the same a "O SHHH" moment it comes in handy I have killed my Autocad menu's by loading one under development a nasty bug in Autocad.

 

I use a username.scr for their toolbars as each person has some individual preferences you can get "Username"

 

0 Likes
Message 9 of 9

Jedimaster
Collaborator
Collaborator

I have a routine that "resets" menus.

1. Gets all menus and partial menus file names.

2. Gets all Tool bar status and position.

3. Unloads all menus.

4. locates the AutoCAD install copies all CUIX files to ROAMABLEROOTPREFIX\SUPPORT

5. Verifies if Main menus is not read-only, fixes otherwise.

6. Reloads menus and partial menus.

7. Reload and positions Tool bars.

8. Saves New workspace.

 

Everything looks good with the exception of Command Line. I know how to close and open. I know how to manually dock. I need a way to dock automated.

I have tried controlling as palette. I have found and tried examples making a New palette. But nothing to grab the open command line.

I checked 

HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R23.1\ACAD-3001:409\FixedProfile\Command Line Windows

TextWindow.Position

HKEY_CURRENT_USER\SOFTWARE\Autodesk\AutoCAD\R23.1\ACAD-3001:409\FixedProfile\Application Window

Position

Dose not change anything.

I can modify and save in CUIX file, would rather not  go that route.

Tried looking in the FixedProfile.aws

 

I just found some thing in Profile.aws