To provide Annotation on Components based on Property Value.
Switching Property value should annotate accordingly.With a new Property, user wanted to control set of Flange, gasket & bolt to toggle ON/OFF on isometrics. Below are the steps to resolve such case using rep_sortgroups.txt file present inside the project style folder.
SORTGROUP = FLANGE_1 HEADER = @ ----------- HEADER = @ FLANGE_1 HEADER = @ ----------- RULE = IE_TYPE=CT_FLANGE SKIP = 1 SORTGROUP = GASKET HEADER = @ ----------- HEADER = @ GASKET HEADER = @ ----------- RULE = IE_TYPE=CT_GASKET && B_COMPLETE = NO
SORTGROUP = GASKET_1 HEADER = @ ----------- HEADER = @ GASKET_1 HEADER = @ ----------- RULE = IE_TYPE=CT_GASKET SKIP = 1
SORTGROUP = BOLT HEADER = @ ----------- HEADER = @ BOLT HEADER = @ ----------- RULE = IE_TYPE=CT_BOLT && B_COMPLETE = NO
SORTGROUP = BOLT_1 HEADER = @ ----------- HEADER = @ BOLT_1 HEADER = @ ----------- RULE = IE_TYPE=CT_BOLT SKIP = 1
Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!
Hi ! This was the case of one of our users: if a flange/gasket/bolt is complete (new property was set for FLANGE, GASKET, BOLT, which was B_COMPLETE, equals YES if complete, but can be anything in this case) there should not be any annotation, vice versa if it is not (B_COMPLETE=NO) it should place the annotation. It works having the property value in Russian (can be "НЕТ" or "ДА" or something)
This is the rep_sortgroups.txt file (complete, without comments):
SORTGROUP = VALVES
HEADER = @ -----------
HEADER = @ VALVES
RULE = IE_TYPE = CT_VALVE.*
SORTGROUP = PIPES1
HEADER = @ PIPES1
RULE = IE_TYPE=CT_PIPE
SORTGROUP = PIPES2
HEADER = @ PIPES2
RULE = IE_TYPE=CT_BEND
# The fitting group is defined here because we want it reported after the
# PIPES group in the report. No Rules are yet defined becasue so many different
# component types belong to this group
#
SORTGROUP = FITTINGS
HEADER = @ FITTINGS
SORTGROUP = ELBOW
HEADER = @ Elbow
RULE = IE_TYPE=CT_ELBOW
SORTGROUP = FLANGE
HEADER = @ FLANGE
RULE = IE_TYPE=CT_FLANGE && B_COMPLETE = NO
SORTGROUP = FLANGE_1
HEADER = @ FLANGE_1
RULE = IE_TYPE=CT_FLANGE
SKIP = 1
SORTGROUP = GASKET
HEADER = @ GASKET
RULE = IE_TYPE=CT_GASKET && B_COMPLETE = NO
SORTGROUP = GASKET_1
HEADER = @ GASKET_1
RULE = IE_TYPE=CT_GASKET
SORTGROUP = BOLT
HEADER = @ BOLT
RULE = IE_TYPE=CT_BOLT && B_COMPLETE = NO
SORTGROUP = BOLT_1
HEADER = @ BOLT_1
RULE = IE_TYPE=CT_BOLT
SORTGROUP = SUPPORT
HEADER = @ SUPPORT
RULE = IE_TYPE=CT_SUPPORT
SORTGROUP = CLAMP
HEADER = @ CLAMP
RULE = IE_TYPE=CT_CLAMP
# Here we re-visit the FITTINGS group
# The initial entry defined the order (after the PIPES group)
# We add everything not yet catched here to belong to the fittings group
RULE = IE_TYPE = CT_PIPESPOOL
RULE = IE_TYPE = CT_REDUCER
RULE = IE_TYPE = CT_ECCENTRIC_REDUCER
RULE = IE_TYPE = CT_LAPJOINT
RULE = IE_TYPE = CT_STUB
RULE = IE_TYPE = CT_FERRULE
RULE = IE_TYPE = CT_OLET
RULE = IE_TYPE = CT_STRAINER.*
RULE = IE_TYPE = CT_INSTRUMENT.*
RULE = IE_TYPE = CT_RETURN.*
RULE = IE_TYPE = CT_ADDITEM
# the last rule is a catch all
RULE = IE_TYPE = CT_.*