cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

IF/Then to replace a blank parameter in title block format

cbroach
8-Gravel

IF/Then to replace a blank parameter in title block format

Is there a way to use a different parameter if your primary parameter is blank that your title block references? I want my REV cell using &ptc_wm_revision to use the parameter drawing_rev if ptc_wm_revision is blank. 

 

example: if ptc_wm_revision is blank use drawing_rev, but if ptc_wm_revision isn't blank then use ptc_wm_revision.

 

This would be used if a team is creating drawings outside of windchill due to location, but when we put them into windchill at a later date then the revision assigned from windchill will override the prototype revision.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BenLoosli
23-Emerald II
(To:cbroach)

It can be done, but it isn't straight forward.

You will need to create a relation that sets drw_rev to drawing_rev if ptc_wm_revision is blank. Then use Drw_rev in your titleblock.

If ptc_wm_revision == ""

   drw_rev = Drawing_rev

else

   drw_rev = ptc_wm_rev

endif

 

You could also check for the existence of Drawing_Rev.

View solution in original post

1 REPLY 1
BenLoosli
23-Emerald II
(To:cbroach)

It can be done, but it isn't straight forward.

You will need to create a relation that sets drw_rev to drawing_rev if ptc_wm_revision is blank. Then use Drw_rev in your titleblock.

If ptc_wm_revision == ""

   drw_rev = Drawing_rev

else

   drw_rev = ptc_wm_rev

endif

 

You could also check for the existence of Drawing_Rev.

Top Tags