Skip to main content
11-Garnet
March 20, 2023
Solved

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

  • March 20, 2023
  • 1 reply
  • 1082 views

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.

 

 

 

Best answer by BenLoosli

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.

1 reply

BenLoosli23-Emerald IIIAnswer
23-Emerald III
March 20, 2023

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.