Skip to content

AskSheetImages

Request

AskSheetImages is a request used to extract full-sheet images from a technical drawing. This request retrieves images of entire drawing sheets, preserving the layout, annotations, and graphical elements for further processing, visualization, or archival purposes.

This feature is particularly useful for: * Archiving technical drawings for future reference. * Visualization without requiring CAD software.

ROTATION

The system automatically corrects rotation to ensure the drawing is properly oriented. If you rely on coordinate-based extractions (e.g., via AskBalloons), you must use the generated sheet image rather than the original image you uploaded.

Example Usage

from werk24 import AskSheetImages, read_example_drawing

# Send the request
results = read_example_drawing(test_drawing, [request])

# Write the results to the file system
for i, page_response in enumerate(results.get("ASK_SHEET_IMAGES", [])):
    path = f"sheet_image_{i+1}.png"
    with open(path, "wb+") as fid:
        fid.write(response.payload_bytes)