How to make a dialog box?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How to make a dialog box?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer
Author Message
T Bennett
Guest





Posted: Tue Apr 26, 2005 12:10 am    Post subject: How to make a dialog box? Reply with quote

Hey all, I need a dialog box that will ask the user for two dimensions: a
thickness and an angle. The part is a generic.

Is there a way to get a dialog box to pop up that will let a person plug the
appropriate numbers into them, then update the model?

I've considered using parameters and/or relations to drive these, but they
don't have the flexibility we need (long story). I have VB.Net but not C++.
Did I mention that I'm a newbie?

Todd
bspammed2@yahoo.com

Back to top
huggre
Guest





Posted: Tue Apr 26, 2005 8:10 am    Post subject: Re: How to make a dialog box? Reply with quote

"T Bennett" <bspammed2@yahoo.com> wrote in message news:<1114468821.34ceca9eee848e8e569491c457506639@teranews>...
Quote:
Hey all, I need a dialog box that will ask the user for two dimensions: a
thickness and an angle. The part is a generic.

Is there a way to get a dialog box to pop up that will let a person plug the
appropriate numbers into them, then update the model?

I've considered using parameters and/or relations to drive these, but they
don't have the flexibility we need (long story). I have VB.Net but not C++.
Did I mention that I'm a newbie?

Todd
bspammed2@yahoo.com

Todd

Have a look at JLink and WebLink, they are both java based but i guess
if you know how to program in .net you are familiar with object
oriented programming.
Both API's are bundled with Pro/E and can be used at no charge.
I have created a similar solution to what you are looking for in
Weblink, in my case i have created a dialogue box where you can bind
dimensions in a model to a string parameter so that the parameter
updates when the model changes.
Im sad to say that the documentation for Jlink and WebLink is not to
good and that it seems to be few people who use it (lets hope PTC
embedds VBA in future versions of Pro/E)

Hugo
Back to top
T Bennett
Guest





Posted: Tue Apr 26, 2005 10:48 pm    Post subject: Re: How to make a dialog box? Reply with quote

Ok, sounds great. How the heck do you get started using J-link? It'd sure
be nice if you could just click Tools>Programs>J-link and be off and
running. Like in Excel: Tools>Macro>Visual Basic Editor and BANG you're
ready to rock-n-roll.

Todd

Quote:

Have a look at JLink and WebLink, they are both java based but i guess
if you know how to program in .net you are familiar with object
oriented programming.
Both API's are bundled with Pro/E and can be used at no charge.
I have created a similar solution to what you are looking for in
Weblink, in my case i have created a dialogue box where you can bind
dimensions in a model to a string parameter so that the parameter
updates when the model changes.
Im sad to say that the documentation for Jlink and WebLink is not to
good and that it seems to be few people who use it (lets hope PTC
embedds VBA in future versions of Pro/E)

Hugo


Back to top
David Janes
Guest





Posted: Wed Apr 27, 2005 6:12 am    Post subject: Re: How to make a dialog box? Reply with quote

"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114537744.6ecc4844fe995ae5f0e1bbf62c6653f8@teranews...
Quote:
Ok, sounds great. How the heck do you get started using J-link? It'd sure
be nice if you could just click Tools>Programs>J-link and be off and
running. Like in Excel: Tools>Macro>Visual Basic Editor and BANG you're
ready to rock-n-roll.


Yeah, well, you're right. It's not the Java visual interface. I guess they figure
you can write programs in Java and just use the Pro/e interface to link to those
programs. Not much of a sacrifice, unless one is expecting PTC to teach one Java.

BTW, while you're there, you might want to check out the ancient Pro/e answer to
what you're looking for: an interactive solution to model changes. It's called
Pro/PROGRAM which you access from that menu by pressing Show or Edit Design.
There's some stuff in the Help files. But the basic thing is that it's here that
you set up your 'Input' prompts, based on old fashioned "assignment", where
variables are created and values assigned; and a 'Relations' section which
identifies what model dimensions are governed by these assigned values. When a
program is thus set up and you open this model with some unregenerated values, it
will ask, when you open the part, if you want to regenerate and show you a list of
choices, including 'Current values', but if you pick 'Input', it switches you to
the 'Input' prompts you set up, showing you your prompt text and giving you the
opportunity to input new values. When you've answered the prompts, Pro/e
regenerates your model with the new input values. It's a simple, command-line
interface. No sophisticated radio buttons, drop down lists or check boxes of the
modern GUI interface. But maybe you don't need anymore than a simple prompt and a
place to input the response. If so, Pro/PROGRAM is a more simply answered solution
than the Linx brothers. And, down the road, capable of more complexity than
apparent. A simple solution that can get complex in a pinch (if you can put up
with the crude interface).
--
David Janes
Back to top
T Bennett
Guest





Posted: Thu Apr 28, 2005 12:10 am    Post subject: Re: How to make a dialog box? Reply with quote

This is fine except I don't want to have to be prompted every time I
regenerate.

Todd

"David Janes" <djanes@cox.net.involllix> wrote in message
news:RGBbe.32638$lv1.30012@fed1read06...
Quote:
"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114537744.6ecc4844fe995ae5f0e1bbf62c6653f8@teranews...
Ok, sounds great. How the heck do you get started using J-link? It'd
sure
be nice if you could just click Tools>Programs>J-link and be off and
running. Like in Excel: Tools>Macro>Visual Basic Editor and BANG you're
ready to rock-n-roll.


Yeah, well, you're right. It's not the Java visual interface. I guess they
figure
you can write programs in Java and just use the Pro/e interface to link to
those
programs. Not much of a sacrifice, unless one is expecting PTC to teach
one Java.

BTW, while you're there, you might want to check out the ancient Pro/e
answer to
what you're looking for: an interactive solution to model changes. It's
called
Pro/PROGRAM which you access from that menu by pressing Show or Edit
Design.
There's some stuff in the Help files. But the basic thing is that it's
here that
you set up your 'Input' prompts, based on old fashioned "assignment",
where
variables are created and values assigned; and a 'Relations' section which
identifies what model dimensions are governed by these assigned values.
When a
program is thus set up and you open this model with some unregenerated
values, it
will ask, when you open the part, if you want to regenerate and show you a
list of
choices, including 'Current values', but if you pick 'Input', it switches
you to
the 'Input' prompts you set up, showing you your prompt text and giving
you the
opportunity to input new values. When you've answered the prompts, Pro/e
regenerates your model with the new input values. It's a simple,
command-line
interface. No sophisticated radio buttons, drop down lists or check boxes
of the
modern GUI interface. But maybe you don't need anymore than a simple
prompt and a
place to input the response. If so, Pro/PROGRAM is a more simply answered
solution
than the Linx brothers. And, down the road, capable of more complexity
than
apparent. A simple solution that can get complex in a pinch (if you can
put up
with the crude interface).
--
David Janes

Back to top
Jason L
Guest





Posted: Wed May 04, 2005 12:10 am    Post subject: Re: How to make a dialog box? Reply with quote

Is there any way not to be prompted each time you regenerate a part created
in Pro/Program ?????




"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114632708.f459bf7ad78aa45e0c8b5e9770ed0424@teranews...
Quote:
This is fine except I don't want to have to be prompted every time I
regenerate.

Todd

"David Janes" <djanes@cox.net.involllix> wrote in message
news:RGBbe.32638$lv1.30012@fed1read06...
"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114537744.6ecc4844fe995ae5f0e1bbf62c6653f8@teranews...
Ok, sounds great. How the heck do you get started using J-link? It'd
sure
be nice if you could just click Tools>Programs>J-link and be off and
running. Like in Excel: Tools>Macro>Visual Basic Editor and BANG
you're
ready to rock-n-roll.


Yeah, well, you're right. It's not the Java visual interface. I guess
they
figure
you can write programs in Java and just use the Pro/e interface to link
to
those
programs. Not much of a sacrifice, unless one is expecting PTC to teach
one Java.

BTW, while you're there, you might want to check out the ancient Pro/e
answer to
what you're looking for: an interactive solution to model changes. It's
called
Pro/PROGRAM which you access from that menu by pressing Show or Edit
Design.
There's some stuff in the Help files. But the basic thing is that it's
here that
you set up your 'Input' prompts, based on old fashioned "assignment",
where
variables are created and values assigned; and a 'Relations' section
which
identifies what model dimensions are governed by these assigned values.
When a
program is thus set up and you open this model with some unregenerated
values, it
will ask, when you open the part, if you want to regenerate and show you
a
list of
choices, including 'Current values', but if you pick 'Input', it switches
you to
the 'Input' prompts you set up, showing you your prompt text and giving
you the
opportunity to input new values. When you've answered the prompts, Pro/e
regenerates your model with the new input values. It's a simple,
command-line
interface. No sophisticated radio buttons, drop down lists or check boxes
of the
modern GUI interface. But maybe you don't need anymore than a simple
prompt and a
place to input the response. If so, Pro/PROGRAM is a more simply answered
solution
than the Linx brothers. And, down the road, capable of more complexity
than
apparent. A simple solution that can get complex in a pinch (if you can
put up
with the crude interface).
--
David Janes



Back to top
Jason L
Guest





Posted: Sat May 07, 2005 12:10 am    Post subject: Re: How to make a dialog box? Reply with quote

never mind...i found the answer....just delete all the info in between INPUT
and END INPUT.


"Jason L" <tectranbrake@yahoo.com> wrote in message
news:o8Rde.20273$V02.17469@fe08.lga...
Quote:
Is there any way not to be prompted each time you regenerate a part
created in Pro/Program ?????




"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114632708.f459bf7ad78aa45e0c8b5e9770ed0424@teranews...
This is fine except I don't want to have to be prompted every time I
regenerate.

Todd

"David Janes" <djanes@cox.net.involllix> wrote in message
news:RGBbe.32638$lv1.30012@fed1read06...
"T Bennett" <bspammed2@yahoo.com> wrote in message
news:1114537744.6ecc4844fe995ae5f0e1bbf62c6653f8@teranews...
Ok, sounds great. How the heck do you get started using J-link? It'd
sure
be nice if you could just click Tools>Programs>J-link and be off and
running. Like in Excel: Tools>Macro>Visual Basic Editor and BANG
you're
ready to rock-n-roll.


Yeah, well, you're right. It's not the Java visual interface. I guess
they
figure
you can write programs in Java and just use the Pro/e interface to link
to
those
programs. Not much of a sacrifice, unless one is expecting PTC to teach
one Java.

BTW, while you're there, you might want to check out the ancient Pro/e
answer to
what you're looking for: an interactive solution to model changes. It's
called
Pro/PROGRAM which you access from that menu by pressing Show or Edit
Design.
There's some stuff in the Help files. But the basic thing is that it's
here that
you set up your 'Input' prompts, based on old fashioned "assignment",
where
variables are created and values assigned; and a 'Relations' section
which
identifies what model dimensions are governed by these assigned values.
When a
program is thus set up and you open this model with some unregenerated
values, it
will ask, when you open the part, if you want to regenerate and show you
a
list of
choices, including 'Current values', but if you pick 'Input', it
switches
you to
the 'Input' prompts you set up, showing you your prompt text and giving
you the
opportunity to input new values. When you've answered the prompts, Pro/e
regenerates your model with the new input values. It's a simple,
command-line
interface. No sophisticated radio buttons, drop down lists or check
boxes
of the
modern GUI interface. But maybe you don't need anymore than a simple
prompt and a
place to input the response. If so, Pro/PROGRAM is a more simply
answered
solution
than the Linx brothers. And, down the road, capable of more complexity
than
apparent. A simple solution that can get complex in a pinch (if you can
put up
with the crude interface).
--
David Janes





Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Pro/Engineer All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB