Message 1 of 6
MFC Modal Dialogs in ObjectARX

Not applicable
02-19-2003
09:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am desiring to place "Modal Dialogs" on the "front end" of each of several
commands
that I have already developed in ObjectARX.
I wish to achieve the following:
1. A user issues an already loaded ARX command.
2. That command gathers some global data from say Xrecord already set.
(This data
is used for some defaults for the fields in the dialog box which is
next to appear)
3. That command brings up a model dialog box appears. (Defaults populated
by step 2).
4. The user places data input in the dialog and user clicks "OK".
5. The data fields which need to be stored globally are created or updated
as Xrecords.
6. The dialog box closes and disappears.
7. The ARX command does it function or function as originally designed.
8. The ARX command which was issued originally and which "bought up" the
dialog
finishes.
I am using text based input prompts currently.
I would like to remove many of these unnecessary text based prompts and have
a reasonable interface - a single modal dialog box.
I am using AutoCAD2000 with 2000 ObjectARX SDK.
My question is this. Is there a simple procedure or process to learn those
steps and only
those steps involved above.
(I think I can handle dictionaries, Xrecords, etc.)
(I know I can handle all command driven other stuff - entity objects etc.)
What I have little to no experience on is MFC. I am not sure I want a lot
of experience.
I know I want modal dialogue boxes-
to adjoin them to an ARX built command.
to layout out the resource - fields. (I can do this a little bit)
to set even C or C++ data structures with the values obtained from the
dialog fields.
I do want something like a cookbook approach to this one MFC area rather
than a general knowledge of MFC. Is this possible. Is there a well
documented
step by step procedure (but general enough to cover what I desire) available
somewhere?
I do have very elementary familiarity with ClassWizard and AppWizard.
I do not have any familiary with the ObjectARX ClassWizard.
Thank you in advance,
Bruce Sellers
commands
that I have already developed in ObjectARX.
I wish to achieve the following:
1. A user issues an already loaded ARX command.
2. That command gathers some global data from say Xrecord already set.
(This data
is used for some defaults for the fields in the dialog box which is
next to appear)
3. That command brings up a model dialog box appears. (Defaults populated
by step 2).
4. The user places data input in the dialog and user clicks "OK".
5. The data fields which need to be stored globally are created or updated
as Xrecords.
6. The dialog box closes and disappears.
7. The ARX command does it function or function as originally designed.
8. The ARX command which was issued originally and which "bought up" the
dialog
finishes.
I am using text based input prompts currently.
I would like to remove many of these unnecessary text based prompts and have
a reasonable interface - a single modal dialog box.
I am using AutoCAD2000 with 2000 ObjectARX SDK.
My question is this. Is there a simple procedure or process to learn those
steps and only
those steps involved above.
(I think I can handle dictionaries, Xrecords, etc.)
(I know I can handle all command driven other stuff - entity objects etc.)
What I have little to no experience on is MFC. I am not sure I want a lot
of experience.
I know I want modal dialogue boxes-
to adjoin them to an ARX built command.
to layout out the resource - fields. (I can do this a little bit)
to set even C or C++ data structures with the values obtained from the
dialog fields.
I do want something like a cookbook approach to this one MFC area rather
than a general knowledge of MFC. Is this possible. Is there a well
documented
step by step procedure (but general enough to cover what I desire) available
somewhere?
I do have very elementary familiarity with ClassWizard and AppWizard.
I do not have any familiary with the ObjectARX ClassWizard.
Thank you in advance,
Bruce Sellers