Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
GISAutoCadMap
Posts: 14
Registered: ‎05-23-2012
Message 1 of 3 (2,470 Views)

Turnoff Model\Layout tabs in AutoCAD 2014 from code.

2470 Views, 2 Replies
05-20-2013 07:22 AM

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.

 

ADN Support Specialist
fenton.webb
Posts: 352
Registered: ‎07-24-2007
Message 2 of 3 (2,319 Views)

Re: Turnoff Model\Layout tabs in AutoCAD 2014 from code.

06-19-2013 02:14 PM in reply to: GISAutoCadMap

Use acedSetEnv, e.g. from LISP

 

 (setenv "ShowTabs" "0")

 

or

 

 (setenv "ShowTabs" "1")

 





Fenton Webb

Developer Technical Services

Autodesk Developer Network


Mentor
aqdam1978
Posts: 265
Registered: ‎11-05-2008
Message 3 of 3 (2,314 Views)

Re: Turnoff Model\Layout tabs in AutoCAD 2014 from code.

06-19-2013 03:06 PM in reply to: GISAutoCadMap
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.