Opening local files
There are two options to open a file. Either you can open it through an API server or directly from hard disk.
Supported file formats: dwg, dwt, dxf (up to 2018)
Open file from hard disk
To open a file, simply pass the file path including file protocol prefix in the fileUrl query parameter to the editor url. The format follows the file URI scheme “file:///path”.
The url to open a drawing depends on which port and path you selected during server install:
http://localhost:{http-port}{deploy-path}?fileUrl=…
e.g. for port 80 and deploy path /
Linux: http://localhost/?fileUrl=file:///home/andrea/Documents/My%20Drawings/test.dwg
Windows: http://localhost/?fileUrl=file:///c:\Users\hentschke\Documents\My%20Drawings\test.dwg
or for port 8081 and deploy path /editor
Linux: http://localhost:8081/editor?fileUrl=file:///home/andrea/Documents/My%20Drawings/test.dwg
Windows: http://localhost:8081/editor?fileUrl=file:///c:\Users\hentschke\Documents\My%20Drawings\test.dwg
Please note that only view-only mode is supported when opening file from disk. It is required to open a file through API server if you want to open it in editing mode.
Open file through API server
See https://graebert.atlassian.net/l/cp/tx0FyeGA