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,679 Views)

Turnoff Model\Layout tabs in AutoCAD 2014 from code.

2679 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,528 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,523 Views)

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

06-19-2013 03:06 PM in reply to: GISAutoCadMap
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.