AddDrawing()

The AddDrawing() command adds a drawing to a geometry item in Field View.

Note: This operation typically takes a minute, but could take up to 5 minutes if the server is busy. When done, a return message will arrive.
  • Quota: 250
Table 1. Parameters
ParameterTypeMax LengthRequiredDescription
apiTokenstring50YYour Field View API token.
projectIDintegerYThe project ID to which the drawing will be assigned.
geometryIDintegerYThe ID of the geometry item to which the drawing will be assigned.
filebyte[]20MBYThe drawing you wish to attach to the geometry item. (Must be PDF or JPEG.)
fileNamestring255YThe file name of the drawing you wish to attach to the geometry item. (Must be PDF or JPEG.)
grayScalebooleanYApply a grayscale conversion before inserting the drawing into Field View.
Table 2. Returns
FieldTypeDescription
IDintegerThe ID of the element image to which the drawing was assigned.
<StatusRequest>
       <Status>
           SUCCESS
           <Message>Success.</Message>
       </Status>
       <ID></ID>
   </StatusRequest>