How to make a dialog box?

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 snipped-for-privacy@yahoo.com

Reply to
T Bennett
Loading thread data ...

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

Reply to
huggre

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

Reply to
T Bennett

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).

Reply to
David Janes

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

Todd

Reply to
T Bennett

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

Reply to
Jason L

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

Reply to
Jason L

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.