Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Open Options Dialog to specific tab
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Open Options Dialog to specific tab (Read 2281 times)
0 Members and 1 Guest are viewing this topic.
Keith Brown
Swamp Rat
Posts: 601
Open Options Dialog to specific tab
«
on:
July 19, 2014, 09:18:45 AM »
Does anyone know if it is possible using the .net api to open up the options dialog to a specific tab? I have created a program that inserts a tab into this dialog and it would be nice to be able to create a program specific settings command that opens up this dialog to the specified tab.
Logged
Keith Brown
|
AutoCAD MEP Blog
|
RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013
Andrey Bushman
Swamp Rat
Posts: 864
Re: Open Options Dialog to specific tab
«
Reply #1 on:
July 19, 2014, 01:57:05 PM »
This question is interesting for me too, but I have not found solution in past.
Logged
Jeff_M
King Gator
Posts: 4098
C3D user & customizer
Re: Open Options Dialog to specific tab
«
Reply #2 on:
July 19, 2014, 02:45:08 PM »
Code - C#:
[Select]
Autodesk
.
AutoCAD
.
Internal
.
Utils
.
InvokeOptionsDialog
(
"System"
,
false
,
0
,
false
)
;
Replace "System" with your tab name.
Logged
LE3
Guest
Re: Open Options Dialog to specific tab
«
Reply #3 on:
July 19, 2014, 02:47:43 PM »
how about using acedCmd pinvoke or any newer approach than this now avail and +OPTIONS and then just pass the desired tab index.
Quote
Command: +OPTIONS
Tab index <0>: 3
See if works for you.
Oh... I see Jeff posted some method for this, cool.
Logged
Keith Brown
Swamp Rat
Posts: 601
Re: Open Options Dialog to specific tab
«
Reply #4 on:
July 19, 2014, 02:50:13 PM »
Thanks Jeff, works great.
Le, that only works if you know the tab index. For custom tabs it will be impossible to know the index. How do you know how many custom tabs the user has?
Logged
Keith Brown
|
AutoCAD MEP Blog
|
RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Open Options Dialog to specific tab