mpictor/StepClassLibrary — Issue #96: ERROR: Indexing is only permitted on aggregates
Author: mpictor
Created: 2011-11-12 15:59:36+00:00
State: open

Thomas Thurman wrote:

> relevant to the error on line 21471 in the AP 210 mim schema processor.
>
> context:

>> ENTITY general_datum_reference
>> ...
>> SUBTYPE OF (shape_aspect);
>> base : datum_or_common_datum;
>> modifiers : OPTIONAL SET[1:?] OF datum_reference_modifier;
>> ...
>> WR6: NOT('AP210_ELECTRONIC_ASSEMBLY_INTERCONNECT_AND_PACKAGING_DESIGN_MIM_LF.COMMON_DATUM_LIST' IN TYPEOF(base)) OR (SELF\shape_aspect.of_shape = base[1]\shape_aspect.of_shape);
>> END_ENTITY;
>
> We purposely designed this rule to provide extra information to a processor to indicate that only in the case that base is a common_datum_list will there be an aggregate reference.
>
> In 30739 we were not able to build the structure as one logical expression since there is an assignment statement,
but the modeling logic is similar.