Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Repeat Regions Help Needed

Status
Not open for further replies.

XaeroR35

Mechanical
Jun 3, 2010
18
0
0
US
I need to override some titles of parts that are released in a drawing BOM and I can't figure out the relation needed to do so. I tried creating a new parameter as shown below:


Code:
desc1 = " "

if exists("asm_mbr_partnumber")
     desc1 = &asm.mbr.nomenclature&asm.mbr.title1&asm.mbr.title2&asm.mbr.title3
endif

if exists("asm_mbr_partnumber")
     if asm_mbr_partnumber == "1234"
        desc1 = "NEW DESCRIPTION"
     endif
endif
It seems to be failing due to the multiple strings added together. What is the correct syntax for this?
 
Replies continue below

Recommended for you

You have not added the strings together and the parser thinks it is one long variable.
try this: desc1 = &asm.mbr.nomenclature + &asm.mbr.title1 + &asm.mbr.title2 + &asm.mbr.title3


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
 
Status
Not open for further replies.
Back
Top