One of the more absurd afternoons of my career as a CAD manager involved a councillor, a 400-megabyte drawing and a mailbox that would not accept it. The councillor wanted to see one sheet of a utility as-built, a plan of a pump station, before a meeting the next morning. The drawing set was on our server. The councillor did not have AutoCAD, did not want AutoCAD and, quite reasonably, did not understand why viewing a drawing required anything more than a web browser. We tried a file-sharing link, which was blocked. We tried a PDF, which was missing the layers that the councillor actually wanted to look at. In the end, a junior technician drove to the town hall with a USB stick, which then turned out to hold a version of the drawing that was two revisions old.
I thought about that afternoon often over the following years, because it contained, in a single anecdote, almost every reason why CAD data needs to reach the web. The people who need to see drawings are increasingly not CAD users: councillors, residents, field crews, contractors’ managers, asset owners, GIS analysts. They need to see the right version, on any device, without installing anything, and sometimes alongside a map. Delivering that used to mean building a custom viewer, an expensive and fragile project. Today, a family of cloud services from Autodesk, called Autodesk Platform Services (APS), provides the pieces: a web viewer that opens dozens of CAD and design formats in a browser, services that translate your files for viewing and extract their data, services that run AutoCAD in the cloud on your drawings, and APIs that connect to project data in Autodesk’s cloud platform.
In this guide I’ll explain what APS is, which of its services matter to CAD and GIS people, how the standard pipeline from a DWG to a web viewer works (with code that you can verify), how to combine drawings with web maps, how to extract and use drawing data, how to run drawing automation in the cloud, how to secure it all, what it costs you in effort and money, and what a sensible first project looks like. It is part of our Autodesk series. For the data environment that APS connects to, see Autodesk Docs and Construction Cloud for Geospatial and CAD Data, for desktop-side automation, Automating AutoCAD Map 3D: Scripts, AutoLISP and the .NET API and Batch Processing DWG Files: Core Console, Scripts and FME, and for web maps, How to Create a Web Map (Leaflet, Mapbox, OpenLayers).
A note on facts: APS was previously known by another name (it was renamed in 2023), its APIs, endpoints, versions, pricing and regional availability change over time, and I cannot call Autodesk’s services from this environment. The pieces of code that don’t depend on the live services (URN encoding and polling logic) were tested. The calls to Autodesk’s servers are patterns to verify against the current APS documentation, which is authoritative.

What APS Is, in Plain Language
Autodesk Platform Services is Autodesk’s developer platform: a set of web APIs (and client libraries) that let you build applications and automations on top of Autodesk’s cloud services and file formats. You register an application in a developer portal, get credentials, and then call the services over the web.
The services that matter to CAD and GIS people
| Service | What it does | Typical use |
|---|---|---|
| Authentication | Issues access tokens (OAuth 2.0), for your server or on behalf of a user | Every other call needs a token |
| Data Management | Stores files and organizes projects, folders and items, including access to project data in Autodesk’s construction cloud | Upload drawings, read files from project folders |
| Model Derivative | Translates CAD, BIM and design files into a web-viewable format, and extracts metadata, properties and geometry information | Prepare a DWG for viewing, read layers and properties |
| Viewer | A JavaScript library that displays 2D and 3D models in a browser, with measurement, sectioning, markup and an extension system | Show drawings and models to anyone |
| Design Automation | Runs AutoCAD (and other Autodesk engines) in the cloud, on your files, with your scripts or plugins | Process drawings without a desktop, at scale |
| Webhooks | Notifies your application when something happens (a file is added, a translation finishes) | Trigger pipelines automatically |
| Construction cloud APIs | Access to issues, documents, submittals, sheets and other project data in Autodesk’s construction platform | Connect project data to dashboards, GIS and other systems |
| Other services | Reality capture, data exchange, and others, which evolve | Check the current catalog |
You don’t need all of them. Most CAD and GIS projects use authentication, data management, model derivative and the viewer, and add design automation and webhooks when they want pipelines.
The Core Pipeline: From DWG to a Web Viewer
Showing a drawing in a browser involves a short, standard chain.
- Get a token from the authentication service, with the scopes you need.
- Put the file in cloud storage: upload it to a bucket (or use a file already in a project’s folder).
- Identify the file by its URN: the storage object’s identifier, base64-encoded (a URL-safe form, without padding characters).
- Ask Model Derivative to translate it into a viewable format (for example, the streaming format used by the viewer), and choose the views (2D, 3D).
- Wait for the translation to finish, by polling the manifest, or being notified by a webhook.
- Load the URN in the Viewer, in a web page, using a read-only token.
The URN, and why it trips people up
The URN is the object’s identifier encoded with URL-safe base64 and with the trailing = padding removed. It is one of the most common sources of errors for newcomers, and it is easy to test:
import base64
def to_urn(object_id):
"""URL-safe base64 of the storage object id, without padding, as the translation and viewer services expect."""
return base64.urlsafe_b64encode(object_id.encode("utf-8")).decode("ascii").rstrip("=")
object_id = "urn:adsk.objects:os.object:my-bucket/pump_station_asbuilt.dwg"
urn = to_urn(object_id)
print(urn)
# dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L3B1bXBfc3RhdGlvbl9hc2J1aWx0LmR3Zw
# Round trip, to prove that nothing was lost
padding = "=" * (-len(urn) % 4)
print(base64.urlsafe_b64decode(urn + padding).decode() == object_id) # True(The exact form of the object id depends on the storage service and version, and is returned when you upload. Use the value that the service gives you.)
Getting a token and starting a translation
The following sketch shows the shape of the calls with the requests library. Endpoint paths, parameters and versions change, so check the current documentation. Never put your client secret in browser code or in a repository.
import base64
import os
import time
import requests
APS = "https://developer.api.autodesk.com"
def get_token(client_id, client_secret, scope="data:read data:write bucket:create bucket:read viewables:read"):
basic = base64.b64encode(f"{client_id}:{client_secret}".encode()).decode()
r = requests.post(
f"{APS}/authentication/v2/token",
headers={"Authorization": f"Basic {basic}", "Content-Type": "application/x-www-form-urlencoded"},
data={"grant_type": "client_credentials", "scope": scope},
timeout=30)
r.raise_for_status()
return r.json()["access_token"]
def start_translation(token, urn):
body = {"input": {"urn": urn},
"output": {"formats": [{"type": "svf2", "views": ["2d", "3d"]}]}}
r = requests.post(
f"{APS}/modelderivative/v2/designdata/job",
headers={"Authorization": f"Bearer {token}", "Content-Type": "application/json"},
json=body, timeout=30)
r.raise_for_status()
return r.json()
def get_manifest(token, urn):
r = requests.get(f"{APS}/modelderivative/v2/designdata/{urn}/manifest",
headers={"Authorization": f"Bearer {token}"}, timeout=30)
r.raise_for_status()
return r.json()
token = get_token(os.environ["APS_CLIENT_ID"], os.environ["APS_CLIENT_SECRET"])
start_translation(token, urn)Notice that the credentials come from environment variables, not from the code.
Waiting properly
Translation takes seconds for a small drawing, and minutes for a large one. A well-behaved program polls with a limit, and treats failure as an outcome, not an accident. The logic is independent of the service, so it can be tested with a stand-in:
def wait_for_translation(fetch_manifest, interval=5, max_tries=60, sleep=time.sleep):
"""Poll until the translation is finished. Returns (status, number_of_tries)."""
for i in range(max_tries):
manifest = fetch_manifest()
status = manifest.get("status")
if status in ("success", "failed", "timeout"):
return status, i + 1
sleep(interval)
return "gave_up", max_tries
# Tested with a fake manifest sequence: pending, in progress, in progress, success
states = iter([{"status": "pending"}, {"status": "inprogress"},
{"status": "inprogress"}, {"status": "success"}])
print(wait_for_translation(lambda: next(states), interval=0, sleep=lambda s: None)) # ('success', 4)
# Real use:
# status, tries = wait_for_translation(lambda: get_manifest(token, urn))In production, a webhook that notifies your application when the translation completes is more efficient than polling.
Showing it in a browser
The viewer is a JavaScript library, loaded from Autodesk’s servers, that you initialize with a function that gets an access token from your own server. A minimal page:
<link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css">
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.js"></script>
<div id="viewer" style="position:relative; width:100%; height:80vh;"></div>
<script>
const URN = "dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6bXktYnVja2V0L3B1bXBfc3RhdGlvbl9hc2J1aWx0LmR3Zw";
const options = {
env: "AutodeskProduction2",
api: "streamingV2",
getAccessToken: (callback) =>
fetch("/api/token") // your server returns a short-lived, read-only token
.then((r) => r.json())
.then((t) => callback(t.access_token, t.expires_in))
};
Autodesk.Viewing.Initializer(options, () => {
const viewer = new Autodesk.Viewing.GuiViewer3D(document.getElementById("viewer"));
viewer.start();
Autodesk.Viewing.Document.load(
"urn:" + URN,
(doc) => viewer.loadDocumentNode(doc, doc.getRoot().getDefaultGeometry()),
(code, message) => console.error("Could not load the model", code, message)
);
});
</script>(The viewer’s version in the address and the option names change over time. Take the current snippet from the APS documentation.) The important design point is the getAccessToken function: the browser never sees your client secret. It asks your server, which holds the credentials, for a token that has only the permission to view (a “viewables:read” scope) and a short life.
A minimal server endpoint for that token (here in Python with Flask) looks like:
import os
from flask import Flask, jsonify
app = Flask(__name__)
@app.route("/api/token")
def token():
# Use a read-only scope for anything that goes to the browser
t = get_token(os.environ["APS_CLIENT_ID"], os.environ["APS_CLIENT_SECRET"], scope="viewables:read")
return jsonify({"access_token": t, "expires_in": 3000})(In a real service, cache the token until shortly before it expires, add authentication for your own users, and log access.)
What the Viewer Gives Your Users
- Browser-based viewing of drawings (DWG, DXF, DGN and others) and 3D models, on any device, without installing software.
- 2D sheets and layouts from DWG, with layer controls.
- Measurement, sectioning, markup, comparison and model browser tools.
- Properties: click an object, see its properties.
- Extensions: you can add your own tools and panels, for example a button that highlights all objects on a given layer, or a panel that lists object data.
- Performance through streaming: large models open without downloading everything.
What it doesn’t give you automatically:
- A map. A drawing in the viewer is a drawing, in its own coordinate space, unless you build the connection to a map.
- Editing of the source file.
- Your standards. You decide the layer display, the sheet organization and the context.
Bringing CAD and GIS Together on the Web
The most valuable use of APS for readers of this series is to connect drawings to maps, so that the councillor can click a pump station on a map and see its as-built.
Pattern 1: The sheet index map
The simplest and most robust approach:
- Georeference each drawing sheet or drawing, and compute its extent (or footprint) in real-world coordinates. See Coordinate Systems in AutoCAD Map 3D and Civil 3D Explained and Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL).
- Store the extents as polygons in a GIS database, in a sheet index table, with the sheet’s identifier, title, revision, date and URN.
- Publish the index layer in a web map. See How to Create a Web Map (Leaflet, Mapbox, OpenLayers).
- When a user clicks a polygon, the page opens the viewer with that sheet’s URN.
A sketch of the table, in SQL:
CREATE TABLE sheet_index (
sheet_id text PRIMARY KEY,
project text NOT NULL,
title text,
revision text,
issued_on date,
urn text NOT NULL, -- the viewer URN of the translated drawing
source_crs text, -- EPSG code of the drawing's coordinates
geom geometry(Polygon, 4326)
);
CREATE INDEX sheet_index_geom_idx ON sheet_index USING GIST (geom);(Store the footprint in the web map’s coordinate system, usually WGS 84, and keep the original CRS in the attributes.) The GIS provides the where, and the viewer provides the what. No coordinate transformation of the drawing is needed in the browser. See Spatial SQL Cheat Sheet.
Pattern 2: Features linked to sheets
If your GIS has assets (pipes, valves, pump stations), add a field with the sheet ID of the as-built drawing that documents each asset. The map shows the asset, and a “View as-built” link opens the drawing. This is exactly what my councillor wanted, and it makes the GIS a front door to the document archive. See Utilities Mapping with AutoCAD Map 3D and Civil 3D.
Pattern 3: Data from drawings into the GIS
Model Derivative can extract the properties of a drawing’s objects (layers, types, block attributes, and sometimes object data, depending on the format and version), as structured data. A pipeline can then load them into a database for queries and dashboards. This is a cloud route to the same goal as the attribute extraction in Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL), and suits large archives. Check what your file types expose.
Pattern 4: A map and a model side by side
A web page with a map on the left and the viewer on the right, linked by selection: choosing a feature in the map frames it in the model, and the reverse. It requires placing the model in the map’s coordinate frame, which depends on the georeferencing that the file carries and how the viewer exposes it. Check the current extensions and guidance for geolocation, and test with a known point. For BIM models, see BIM and GIS Integration: Revit, IFC and CityGML.
Pattern 5: Project data from the construction cloud
Issues, documents and sheets in Autodesk’s construction platform can be read through APIs, and shown in GIS dashboards: where the open issues are, which sheets are at which revision, what has been submitted. See Autodesk Docs and Construction Cloud for Geospatial and CAD Data and Story Maps and Interactive Dashboards.
Design Automation: AutoCAD in the Cloud
Design Automation runs an Autodesk engine (such as the AutoCAD core engine) on Autodesk’s servers, with your code and your files. It is the cloud cousin of the Core Console in Batch Processing DWG Files: Core Console, Scripts and FME.
The concepts
- An app bundle: a package containing your plugin (a .NET application, for example) or script resources.
- An activity: a definition of what to run: the engine, the command line, the app bundle, and the inputs and outputs.
- A work item: a request to run an activity with specific inputs (a drawing) and outputs (where to put the result).
What it is good for
- Batch processing at scale, without maintaining a farm of desktop machines.
- Event-driven pipelines: when a drawing is added to a folder, a webhook triggers a work item that audits it, extracts data or converts it.
- Web applications that need AutoCAD operations (for example, a “generate a title block and a PDF” feature) without installing AutoCAD on a server.
- Consistent, controlled environments.
What to watch
- Your plugin must run in the cloud engine, which has no user interface. Code that uses dialogs can’t run there.
- Costs and limits: usage is metered, and there are limits on run time and size. Check the current terms.
- Data handling: the files travel to Autodesk’s cloud. Check what your contracts and data protection rules allow, especially for utility and infrastructure data.
Webhooks: Making It Automatic
A webhook subscribes your application to events: a file was uploaded to a folder, a new version was created, a translation finished, a work item completed. Your server receives a notification and acts.
A typical event-driven pipeline for an as-built portal:
- A new DWG appears in the “Published” folder of a project (event).
- Your server receives the webhook, gets the file’s identifier and requests a translation.
- When the translation completes (another event), the server extracts the metadata, computes or reads the georeferenced footprint, and updates the sheet index in the GIS database.
- A notification goes to the GIS team, with a link to check the result.
- The map shows the new sheet.
No one emailed a drawing, and no one forgot to update the index.
Security, Privacy and Governance
This is an infrastructure project, and the data may be sensitive.
- Protect your credentials. The client secret lives on the server, in a secure store or environment variables. It is never in front-end code, a repository or a shared document.
- Use the narrowest scopes. Tokens for browsers should be read-only for viewables, short-lived and issued per session. Use separate credentials and scopes for upload and automation.
- Authenticate your own users. The viewer page should be behind your organization’s login, and your token endpoint should only serve authenticated users.
- Control who sees which drawings. Map users’ permissions to the drawings they may open. Don’t expose a listing of all URNs.
- Treat utility and infrastructure data as sensitive. Detailed as-built drawings of critical assets can be misused. Decide what may go on the web, to whom, and for how long. See Utilities Mapping with AutoCAD Map 3D and Civil 3D.
- Check data location and legal requirements. Files processed by cloud services reside in the regions that the platform offers. Check data residency, contractual terms and local regulations. Some organizations can’t use public cloud services for some data.
- Log access and review the logs.
- Mind the terms of service, including the limits on use, redistribution and the way you present the viewer.
- Plan for change. APIs evolve and are versioned. Pin the versions you use, watch announcements, and budget time for maintenance.
- Have an exit strategy: keep the source files and the derived data in your own systems, in open formats, so that you are never dependent on a cloud service to access your own drawings. See Shapefile vs. GeoJSON vs. GeoPackage: Which Format to Use?
Costs and Practicalities
I can’t quote prices, because they change and depend on usage and contracts. The questions to ask:
- What is free, and what is metered? Some services have free allowances and metered usage, some are priced by volume, and some are included with certain subscriptions.
- What does your usage look like? A few hundred drawings a month, or millions of requests?
- Who builds and maintains it? A small web application needs developer time. Budget it.
- What are the hosting costs for your server component and the sheet index database?
- What is the total cost of ownership, compared with alternatives: a commercial web viewer product, an open-source viewer, publishing PDFs, or a document management system?
Alternatives
- PDF publishing with layers: simple, universal, static.
- Open-source viewers and converters: a pipeline that converts drawings to open formats (for example, DXF to vector tiles or SVG) and serves them with web mapping libraries. Cheaper in licenses, more work to build, and not equivalent to a full CAD viewer.
- Other vendors’ viewers and platforms, including those from GIS vendors that can display CAD data.
- Autodesk’s own web applications for viewing and markup, with no development.
Choose APS when you need your own application, with your own users, data and logic, and the CAD fidelity of Autodesk’s viewer.
A Worked Example: An As-Built Portal for a Water Utility
Task: give a utility’s field crews, designers and councillors a web map where they can click a facility and see its as-built drawings, with no software installation.
- Scope and governance: the portal shows as-built drawings of pump stations, reservoirs and major mains. It does not show customer data. The security team approves the scope, a login through the organization’s directory, and a rule that drawings older than a stated date are marked “historical.”
- Data preparation: the as-built drawings (about 900) are cleaned and georeferenced in the standard workflow, with the coordinate system recorded. A batch process computes the footprint of each drawing from its extents and writes the sheet index, with title, revision, date, project, source CRS and file location. See Batch Processing DWG Files: Core Console, Scripts and FME.
- Cloud pipeline: a script uploads each drawing to storage, builds its URN, starts the translation and waits for completion with the polling logic above. The URN is stored in the sheet index. Failures are logged and reviewed. 12 drawings fail translation, 9 of which have missing xrefs, which are bound and retried.
- Server: a small web service authenticates users, serves the map page and a token endpoint that issues read-only, short-lived viewer tokens.
- Web map: the sheet index and the asset layers (pump stations, reservoirs, mains) from the utility’s GIS, with a “view as-built” link in each popup, which opens the drawing in the viewer in a side panel.
- Viewer configuration: layers are grouped (structure, pipework, annotation), with defaults that hide dimensions and title blocks. A custom extension adds a button that lists the revision history of the sheet.
- Webhook automation: when a new as-built is published to the project folder, the pipeline translates it, computes its footprint, and adds it to the index. The GIS team gets an email with a link to check it.
- Testing: with 20 users from three groups. The crews love it. One councillor tries it on a phone, and the viewer works. A discovered issue: some sheets’ footprints are wrong because their drawings had the wrong coordinate system. The check goes back into the data preparation standards. See Missing or Wrong Coordinate System in AutoCAD Drawings.
- Operations: usage is logged, the token endpoint monitored, credentials rotated, versions of the APIs pinned and a quarterly review scheduled. The source drawings and the derived data remain in the utility’s own storage.
- Result: requests for drawings by email fall to a trickle, and the as-built archive becomes a living part of the GIS.
The councillor with the USB stick would have liked it. And so, on a good day, would the junior technician who drove it to the town hall.
Common Mistakes
- Putting the client secret in the browser or in a repository.
- Giving browser tokens write scopes or long lives.
- Getting the URN wrong (not URL-safe, with padding, or the wrong id).
- Assuming translation is instant, with no polling, timeout or failure handling.
- Sending drawings with missing xrefs and fonts, and getting empty viewables.
- Skipping georeferencing, and then trying to place sheets on a map by eye.
- Exposing sensitive drawings to the public web.
- Not checking data residency and contracts.
- Not pinning API versions, and being surprised by a change.
- No logging or monitoring.
- No exit strategy, with the only copy of derived data in someone else’s cloud.
- Building a custom application when a standard viewer or a PDF would do.
- Forgetting that someone has to maintain the portal.
Best Practices
- Start with a narrow, well-defined use case and a small pilot.
- Georeference and clean the data first. Garbage in, a beautiful web page of garbage out.
- Keep secrets on the server, use narrow scopes, authenticate your users.
- Build the sheet index as the bridge between GIS and drawings.
- Handle the pipeline’s errors: timeouts, failures, retries and logs.
- Use webhooks for automation, and polling as a fallback.
- Decide what may be exposed, and to whom, before building.
- Keep your source data and derived data in your own systems.
- Pin versions, watch announcements, budget for maintenance.
- Document the architecture, the credentials process and the support plan.
- Measure use, and improve based on what people do.
Final Thoughts
I never did find out what happened to the councillor’s USB stick. I do know what happened to the problem it represented: within two years, no one in that office emailed a drawing to a non-CAD user again. There was a link. It opened in a browser. It showed the current revision. Nobody had to install anything, or drive anywhere, or wonder whether the version was right. It was not a glamorous project. It was a few hundred lines of code, a sheet index table and a long-overdue conversation with the security team. But it changed how the whole organization thought about its drawings: from files that people have, to information that people can reach.
If you want to try it, start small. Take ten drawings that are frequently requested by non-CAD people. Get them translated and shown in a viewer on a simple page. Add a map with their footprints. Show it to the people who keep asking for the files. Their reaction will tell you whether to build the real thing, and what it should do first.
Where to go next: see how the project data environment behind these services is organized in Autodesk Docs and Construction Cloud for Geospatial and CAD Data, and how the same data is prepared on the desktop in Working with DWG and DXF Files in GIS (QGIS, ArcGIS, GDAL).



