Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily.
X
1) Is there a way to look at information in a string parameter output/value to create a conditional relation? I've tried to use "extract", but either haven't figured out the correct syntax or have misunderstood how to use it. My string parameter name is PPF. The PPF value can be A1A, B1A, C1A, etc. I want to create a condition in my program that looks only at position 2 & 3 ("1A") of the PPF string parameter value. I tried the following relation: PPF_E = EXTRACT(PPF,2,3). The relations successfully verify, but I get the following warning: Probable error in function evaluation.
The solution to extract the "1A" from the parameter value C1A for a conditional statement is
IF EXTRACT (PPF,2,2) == "1A"
2) Is there a line limitation in a drawing program?
I did not receive an answer addressing the number of lines allowed in a drawing program. Because I received an answer to the first question, I won't require an answer to the second question. I was not clear in asking my second question, but Tyler sent me the following information that others can use.
* Line lengths are 80 characters max (the drawing program just truncates the line and you can't continue on the next line with "\" like you can in Pro/Program).
I certainly agree it would be great if the drawing program had the same functionality of Pro/Program, allowing multi-line conditions. (I know, submit an enhancement request!)
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.