Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Turnoff Model\Layout tabs in AutoCAD 2014 from code.

2 REPLIES 2
Reply
Message 1 of 3
GISAutoCadMap
3268 Views, 2 Replies

Turnoff Model\Layout tabs in AutoCAD 2014 from code.

Hi eveyone,

 

Need assistance for hiding the model\layout from code.My code is updating the registery properly.but it is not reflecting/hiding the model/layout tabs in application.Please provide some suggestion to hide/trunoff from code.Model/layout is not required for my application.Is there any command to  hide model/layout tab.So i am thankful to you.

 

void CMyApp::TurnoffModelViewLayoutTAB()
{
    //TurnOff Model View Tab   
    CRegKey myKey;
    DWORD dwConversion;
    dwConversion = 1;
    
CString csKeyName="SOFTWARE\\Autodesk\\AutoCAD\\R19.1\\ACAD-D002:409\\Profiles\\<<Unnamed Profile>>\\Drawing Window\\";
    
    if(myKey.Open(HKEY_LOCAL_MACHINE, (char*)LPCTSTR(csKeyName), KEY_ALL_ACCESS) == ERROR_SUCCESS)
    {
        setRegistryDWORD(myKey, ("ShowTabs"), dwConversion);
        myKey.Close();
    }
}

 

Regards,

GISAutoCAD 2014 Migration Team.

 

2 REPLIES 2
Message 2 of 3
fenton.webb
in reply to: GISAutoCadMap

Use acedSetEnv, e.g. from LISP

 

 (setenv "ShowTabs" "0")

 

or

 

 (setenv "ShowTabs" "1")

 




Fenton Webb
AutoCAD Engineering
Autodesk

Message 3 of 3
aqdam1978
in reply to: GISAutoCadMap

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost