### CadImageObject

The CadImageObject lets you display the CAD image inside of a label template or a form. When you select this item and drag a box in the editing environment, PC-DMIS inserts a CadImageObject into the editor, and the object displays a dummy CAD model image.

Label Template Editor showing an inserted CadImageObject

How you size the object in the editing environment determines the size of the object when actually displayed in the Report window or executed form.

The CadImageObject contains these properties:

Property | Description
Standard |
Bottom | Defines the bottom location for the object in pixels from the top of the editor.
Left | Defines the left location for the object in pixels from the left of the editor.
Right | Defines the right location for the object in pixels from the left of the editor.
Show Border | If ON, displays a border around the object. If OFF, no border is drawn.
Top | Defines the top location for the object in pixels from the top of the editor.
Advanced |
(ObjectCode) | Defines the object's unique name.
Enable | Determines whether or not this object is enabled for modification in the form or template. If YES then enabled for modification. If NO, then not enabled for modification.
Visible | Determines whether or not this object is visible in the form or template. If YES then visible. If NO, then hidden.
Events |
EventReportData | This is the event that pulls report data from PC-DMIS into the template or form.

CadImageObject on Labels

You can use the Rules Tree Editor dialog box to display the label template in a report template for a particular dimension or feature. In such a case, the Report window will display the portion of the CAD model that contains that dimension or feature.

Report window showing a CadImageObject next to each displayed dimension

You can scale, scale to fit, rotate or translate this CAD image from the Report window. To do this, double-click on the CAD image to make it editable, and then manipulate the image just as you would the model in the Graphics Display window. To return to the Report window, storing your changes, double-click outside of the object.

CadImageObject on Forms

When it is used on a form, the CadImageObject is bound to the current viewset when PC-DMIS executes the form command. Once you execute the form (CTRL + E) or the part program that calls the form, you cannot modify the CadImageObject.

Form window showing a CadImageObject during program execution

For additional information on forms, see the "About Forms" topic in this chapter.