cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How to create error message pop-up/notification

mcaoyl2
1-Newbie

How to create error message pop-up/notification

Hi ProGurus,

i would like to create a relation such as "dim A + dim B < 15.0mm" .
If A+B >=15.0mm, i wish to have to dialog box pop-up or maybe shown at the
message area of proE,
with written error message according to my input such as
"The maximum length is 15mm. Please try again!".
Can somebody give advise and help on how this error message could be
created?
If need to use proToolkit. what command should be used? and how to
incorporate it within the .prt file.

Thanks in advance for the advise.

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

One way I did this was to drive the changes from a drawing.
what happens here is that the error message gets written into across the
drawing, flagging the users data entry error by writing it across the
drawing.



Here's a snippet from a pro/programs section of an assembly:



T=(4/3)*(P0:8*COEF_FRIC*FS)*(((OD:4)^3-(ID:4)^3)/((OD:4)^2-(ID:4)^2))

ERROR_FLAG="

IF ID:4>=OD:4

ERROR_FLAG ="ERROR IN SPECS. ID IS >= OD FOR FIBER."

TORQUE = "???"

ENDIF





Note that I could (should ?!) have initialized the ERROR_FLAG outside if the
IF statement.

You just need to add a line that sets the error flag condition to the value
you desire _after_ you check the IF statement.



Other than that, it is straight forward. Just create a note in the drawing
that displays your error message.



This won't create a pop up window, but will allow you to catch the error.







That is one way to do it. I am sure there are more efficient ways to get
similar results. This could also be done using the VB API, or JLINK, etc.

Hope that gives you some ideas.



-tsl



todd@coldfire-e.com








Top Tags