BoKirra
2009-04-02, 07:32 AM
Hi ALL,
I have a thought when reading previous threads in this forum.
But I found this is too hard:
Supposed a user have different pipe sections.
He needs to select a pipe for an existing hole in wall.
The hole size is labeled as "Hole" while "ODp" is for Pipe OD.
He may have used the code for Pipe run 01 selection.
The user is now working for the Pipe run 02 on the same drawing.
(1) If he simply hit the enter key, the code will
(1.a) Ask the user re-enter a suitable pipe size (< ODp Hole), or
(1.b) Ask the user to accept the previous input (for Pipe run 01)
that the code found. And if this is the case, the code will check
if (< ODp_previous Hole) is true.
Process (1) will not stop until input is valid.
This is a loop statement.
(2) If (>= ODp Hole),
the code will repeat the above process.
Again, it is a loop statement.
Your helps are much appreciated.
I have a thought when reading previous threads in this forum.
But I found this is too hard:
Supposed a user have different pipe sections.
He needs to select a pipe for an existing hole in wall.
The hole size is labeled as "Hole" while "ODp" is for Pipe OD.
He may have used the code for Pipe run 01 selection.
The user is now working for the Pipe run 02 on the same drawing.
(1) If he simply hit the enter key, the code will
(1.a) Ask the user re-enter a suitable pipe size (< ODp Hole), or
(1.b) Ask the user to accept the previous input (for Pipe run 01)
that the code found. And if this is the case, the code will check
if (< ODp_previous Hole) is true.
Process (1) will not stop until input is valid.
This is a loop statement.
(2) If (>= ODp Hole),
the code will repeat the above process.
Again, it is a loop statement.
Your helps are much appreciated.