' Use CGPolyline to create a rectangle. ' it needs the list of points Child polyRect As :CGPolyline Points = {pt1,pt2,pt3,pt4,pt1} color = Me.color Selectable? = True End Child ' Simple Rule event Handlers Method width_preModify() As List COM_msgbox(stringValue(width)) Return {} End Method Method width_postModify() As List COM_msgbox(stringValue(width)) Return {} End Method Method postCreateSelf() As List 'Modify the color after CGRect is created Return { _ { :action , :createDynamicRule, _ :part , self(), _ :name , :color, _ :formula ,stringvalue("Yellow") _ } _ } End Method End Design Add Dimensions Smartly The creation of drawing views with proper scale is well established process. The confusion arises when one wants to dimension the views. Typically following two approaches are used. Add dimensions using Named entities, this involves additional work of naming entities which are involved in dimensioning. The problem can be that those entities may not appear in drawing view, as there can be overlapping drawing curves. The other common approach involves use of work points, which works fine even for complex models. The focus would be around 2nd approach to demonstrate some techniques to create dimensions quickly and with better clean placement.
' Use CGPolyline to create a rectangle. ' it needs the list of points Child polyRect As :CGPolyline Points = {pt1,pt2,pt3,pt4,pt1} color = Me.color Selectable? = True End Child ' Simple Rule event Handlers Method width_preModify() As List COM_msgbox(stringValue(width)) Return {} End Method Method width_postModify() As List COM_msgbox(stringValue(width)) Return {} End Method Method postCreateSelf() As List 'Modify the color after CGRect is created Return { _ { :action , :createDynamicRule, _ :part , self(), _ :name , :color, _ :formula ,stringvalue("Yellow") _ } _ } End Method End Design Add Dimensions Smartly The creation of drawing views with proper scale is well established process. The confusion arises when one wants to dimension the views. Typically following two approaches are used. Add dimensions using Named entities, this involves additional work of naming entities which are involved in dimensioning. The problem can be that those entities may not appear in drawing view, as there can be overlapping drawing curves. The other common approach involves use of work points, which works fine even for complex models. The focus would be around 2nd approach to demonstrate some techniques to create dimensions quickly and with better clean placement.
handout_1664_au_2012_class_handout_CP1664.docx