Dear Colleagues-
Where I work we use a base number, say 349854, for our drawings but none of our drawings or models currently have a drawing number text parameter. We'd like to extract the drawing number from the model name text parameter which includes a hyphen and a four-digit dash number e.g. 349854-0019.
For the model name of the generic instance we use a zero dash number e.g. 349854-0000. For family table instances we use non-zero dash numbers e.g. 349854-0905. Using relations, is it possible to take a model name and strip the hyphen and dash number to come up with the basic drawing number '349854'? In other words, is it possible to concatinate a text parameter in a relation? Here's what I'd like to do (please excuse the syntax):
If modelno were, say, 349854-0000 or, say, 349854-0114, it would be nice to do:
dwgno = modelno - '-****'
ending up with
dwgno=349854
Thanks for your help! I'm new to Pro/Program and parameters and this is something we need to do badly.
Where I work we use a base number, say 349854, for our drawings but none of our drawings or models currently have a drawing number text parameter. We'd like to extract the drawing number from the model name text parameter which includes a hyphen and a four-digit dash number e.g. 349854-0019.
For the model name of the generic instance we use a zero dash number e.g. 349854-0000. For family table instances we use non-zero dash numbers e.g. 349854-0905. Using relations, is it possible to take a model name and strip the hyphen and dash number to come up with the basic drawing number '349854'? In other words, is it possible to concatinate a text parameter in a relation? Here's what I'd like to do (please excuse the syntax):
If modelno were, say, 349854-0000 or, say, 349854-0114, it would be nice to do:
dwgno = modelno - '-****'
ending up with
dwgno=349854
Thanks for your help! I'm new to Pro/Program and parameters and this is something we need to do badly.
