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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

Drawing format: Passing relations for Part or Assembly

_ML_
2-Explorer

Drawing format: Passing relations for Part or Assembly

Goal: One drawing format which will populate specific data and not matter if the drawing model is a single part or an assembly.

 

Using a repeat region I am trying to pass model material along with a few other items into a title block.  I can successfully make this happen by

  1. Using 2 different formats so the repeat region calls out
    1. mbr/ptc_material/ptc_material_name
    2. asm/mbr/ptc_material/ptc_material_name
  2. Using 1 format, but making all drawing models assemblies so that the item 2 always is present.

Is there a way to use repeat region relations in order to have a single format with a repeat region which works if the drawing model is a part or an assembly?  I'm not sure if it is even possible, or if I simply am having an issue with syntax and formatting.

2 REPLIES 2
BenLoosli
23-Emerald III
(To:_ML_)

Try using

IF asm.mbr.type == 'prt'

use part parameters

endif

if asm.mbr.typ == 'asm'

use assembly parameters

endif

 

_ML_
2-Explorer
(To:BenLoosli)

Sadly, no such luck.

The following relations will verify in the drawing of an assembly but does not work on drawing repeat region.  The same relations in a drawing of a part will not verify and result in errors.

if asm_mbr_type == 'PART'
test = mbr_ptc_material_ptc_material_name
endif
if asm_mbr_type == 'ASSEMBLY'
test = asm_mbr_ptc_material_ptc_material_name
endif

Announcements

Top Tags