Relation definition in drawing
In simple 2-d region, we can select the system defined parameter, say "rpt.index" and so on. My question is when a user wants to set his own parameter, say "code", how can he get the result as he wanted?
Would you kindly help me to check where I am wrong?
First
set a middle parameter-"PR" string
and the target parameter-"code" integrate
and then set the relation in the system
as follow
PR="asm.mbr.name" #transfer the part name to the PR in assmebly drawing#
code=search(PR,"GB") #seperate the standard part which is begin with "GB" from designed part#
IF code==0
code="&rpt.index" #if there are no "GB" in the name, then make the "index" to the code#
ELSE
code=&code #otherwise, user shall input the GB code number#
ENDIF
and in the simple 2-d region, choose the "asm.mbr.user defined"-input "code". but unluckily I cannot get any number show in table column of "code"
# I am intending to change the ballon number which is sequenced from step by sep, and in my compnay internal, we need to make the standard part ballon number input by designer, and that's why I set the "code" parameter. #
thanks!
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.

