Skip to main content
4-Participant
Feb 5, 2026 3:50 PM UTC
Question

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.

6 replies

23-Emerald III
Feb 5, 2026 4:33 PM UTC

Try using

IF asm.mbr.type == 'prt'

use part parameters

endif

if asm.mbr.typ == 'asm'

use assembly parameters

endif

 

Translate
4-Participant
Feb 5, 2026 6:53 PM UTC

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

Translate