Patent ID: 7644363

Claim:
A method for generating a label associated with a drawing element in a computer aided design (CAD) drawing, comprising: receiving a selection of a first drawing element included in the CAD drawing, wherein the first drawing element is associated with a set of drawing elements included in the CAD drawing; receiving a selection of a first drawing element type, wherein at least one drawing element in the set of drawing elements is an instance of the first drawing element type; receiving a selection of a first attribute of the first drawing element type, wherein each instance of the first drawing element type is defined, at least in part, by a value of the first attribute; defining a label style associated with the first drawing element, wherein the label style includes a for-each label component that specifies the first drawing element type and the first attribute; identifying one or more drawing elements included in the set of drawing elements that are instances of the first drawing element type included in the for-each label component; and generating label content for a first label associated with the first drawing element based on the label style by determining the value of the first attribute included in the for-each label component for each drawing element included in the one or more drawing elements.