Automate Smart Annotation Creation

Tutorial showing how to automate the creation of smart annotations using a view update rule.
Step by step:
1. In a drawing sheet, create a rule set
2. Add an annotation rule template
3. Define a condition using a rule
4. Set the annotation to add if the condition is true
5. Define the placement strategy for the annotation
6. Add the view update rule to the AS View Update Rules Templates Catalog

Based on this process, you can automate the creation of your smart annotations


Code ekl for the rule (Input is set as ProductOccurence):

-----------------------------------------------------------------------------
Let PrdRef(VPMReference)
Let PrdOcc(ProductOccurrence)

Set PrdOcc = Input
if (NULL <> PrdOcc)
{
    set PrdRef=Input.Reference
    Result = PrdRef.IsASortOf("AecBeam")
    if Result == False
    {
        Result = PrdRef.IsASortOf("AecColumn")
    }
    if Result == False
    {
        Result = PrdRef.IsASortOf("AecMember")
    }
}