MFC Modal Dialogs in ObjectARX

MFC Modal Dialogs in ObjectARX

Anonymous
Not applicable
1,025 Views
5 Replies
Message 1 of 6

MFC Modal Dialogs in ObjectARX

Anonymous
Not applicable
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
0 Likes
1,026 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
I don't have a ready written recipe for you, but here are a few pointers to
additional information.

The ObjectARX Wizard will help you generate your MFC dialogs (there's an MFC
support button).
There is a section in the ObjectARX Developer's Guide on 'MFC Topics'.
There are some ObjectARX books listed on amazon that might include details
of MFC. For example, I know that Charles McAuley's book has some chapters on
implementing dialogs using ObjectARX's MFC classes, and has some nice (and
relatively simple to understand) samples on the accompanying CD.

However, you'll definitely benefit most if you take some time out (even just
a day or so) to learn a bit of MFC first. (Cookbooks are fine until your
sauce starts to go lumpy 🙂

Cheers,

Stephen Preston
Developer Technical Services
Autodesk

.
"Bruce Sellers" wrote in message
news:C9845E322DEEA42E7CA5147283B7633E@in.WebX.maYIadrTaRb...
> 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
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Stephen,

I would like to make some lumpy sauce first!
Ha!
Any receipes for lumpy sauce?

Bruce

Stephen Preston (Autodesk) wrote in message
news:632396D33076D38AB0BFB0C7574D885D@in.WebX.maYIadrTaRb...
> I don't have a ready written recipe for you, but here are a few pointers
to
> additional information.
>
> The ObjectARX Wizard will help you generate your MFC dialogs (there's an
MFC
> support button).
> There is a section in the ObjectARX Developer's Guide on 'MFC Topics'.
> There are some ObjectARX books listed on amazon that might include details
> of MFC. For example, I know that Charles McAuley's book has some chapters
on
> implementing dialogs using ObjectARX's MFC classes, and has some nice (and
> relatively simple to understand) samples on the accompanying CD.
>
> However, you'll definitely benefit most if you take some time out (even
just
> a day or so) to learn a bit of MFC first. (Cookbooks are fine until your
> sauce starts to go lumpy 🙂
>
> Cheers,
>
> Stephen Preston
> Developer Technical Services
> Autodesk
>
> .
> "Bruce Sellers" wrote in message
> news:C9845E322DEEA42E7CA5147283B7633E@in.WebX.maYIadrTaRb...
> > 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
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
😄

Did you look in the ARX Devguide - there's a section under 'MFC Topics'
called 'Using AdUi and AcUi with VC++ AppWizard'. These pages include a
simple tutorial on how to do it. Once you've done that, try installing the
ARX Wizard, creating an MFC ARX project, and then clicking the MFC support
button (the one with the 'building blocks' logo on it). Then you'll get an
idea of what the ARX Wizard can help you with.

Cheers,

Stephen


"Bruce Sellers" wrote in message
news:71630DDCFAD6C39FE93F2E03FF03F2F0@in.WebX.maYIadrTaRb...
> Stephen,
>
> I would like to make some lumpy sauce first!
> Ha!
> Any receipes for lumpy sauce?
>
> Bruce
>
> Stephen Preston (Autodesk) wrote in message
> news:632396D33076D38AB0BFB0C7574D885D@in.WebX.maYIadrTaRb...
> > I don't have a ready written recipe for you, but here are a few pointers
> to
> > additional information.
> >
> > The ObjectARX Wizard will help you generate your MFC dialogs (there's an
> MFC
> > support button).
> > There is a section in the ObjectARX Developer's Guide on 'MFC Topics'.
> > There are some ObjectARX books listed on amazon that might include
details
> > of MFC. For example, I know that Charles McAuley's book has some
chapters
> on
> > implementing dialogs using ObjectARX's MFC classes, and has some nice
(and
> > relatively simple to understand) samples on the accompanying CD.
> >
> > However, you'll definitely benefit most if you take some time out (even
> just
> > a day or so) to learn a bit of MFC first. (Cookbooks are fine until your
> > sauce starts to go lumpy 🙂
> >
> > Cheers,
> >
> > Stephen Preston
> > Developer Technical Services
> > Autodesk
> >
> > .
> > "Bruce Sellers" wrote in message
> > news:C9845E322DEEA42E7CA5147283B7633E@in.WebX.maYIadrTaRb...
> > > 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
> > >
> > >
> >
> >
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
Stephen,

Thanks, the first several times I would like it to be a bit "mechanical"
and only partially instructive.

Bruce

Stephen Preston wrote in message
news:54F633B5398F1E74C00F499C16DC5C20@in.WebX.maYIadrTaRb...
> 😄
>
> Did you look in the ARX Devguide - there's a section under 'MFC Topics'
> called 'Using AdUi and AcUi with VC++ AppWizard'. These pages include a
> simple tutorial on how to do it. Once you've done that, try installing the
> ARX Wizard, creating an MFC ARX project, and then clicking the MFC support
> button (the one with the 'building blocks' logo on it). Then you'll get an
> idea of what the ARX Wizard can help you with.
>
> Cheers,
>
> Stephen
>
>
> "Bruce Sellers" wrote in message
> news:71630DDCFAD6C39FE93F2E03FF03F2F0@in.WebX.maYIadrTaRb...
> > Stephen,
> >
> > I would like to make some lumpy sauce first!
> > Ha!
> > Any receipes for lumpy sauce?
> >
> > Bruce
> >
> > Stephen Preston (Autodesk) wrote in message
> > news:632396D33076D38AB0BFB0C7574D885D@in.WebX.maYIadrTaRb...
> > > I don't have a ready written recipe for you, but here are a few
pointers
> > to
> > > additional information.
> > >
> > > The ObjectARX Wizard will help you generate your MFC dialogs (there's
an
> > MFC
> > > support button).
> > > There is a section in the ObjectARX Developer's Guide on 'MFC Topics'.
> > > There are some ObjectARX books listed on amazon that might include
> details
> > > of MFC. For example, I know that Charles McAuley's book has some
> chapters
> > on
> > > implementing dialogs using ObjectARX's MFC classes, and has some nice
> (and
> > > relatively simple to understand) samples on the accompanying CD.
> > >
> > > However, you'll definitely benefit most if you take some time out
(even
> > just
> > > a day or so) to learn a bit of MFC first. (Cookbooks are fine until
your
> > > sauce starts to go lumpy 🙂
> > >
> > > Cheers,
> > >
> > > Stephen Preston
> > > Developer Technical Services
> > > Autodesk
> > >
> > > .
> > > "Bruce Sellers" wrote in message
> > > news:C9845E322DEEA42E7CA5147283B7633E@in.WebX.maYIadrTaRb...
> > > > 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
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hy,

Try to modify the sample application in ObjectARX:

docsamps\mfcsamps\acuisample

It knows everythink you need, also Stephen recommended this topic too from
ObjectARX Developer's Guide.

Zoltan

"Bruce Sellers" az alábbiakat írta a következo
üzenetben: news:C9845E322DEEA42E7CA5147283B7633E@in.WebX.maYIadrTaRb...
> 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
>
>
0 Likes