Embed AutoCAD WS

Have you ever wondered if there is a way to have AutoCAD WS embedded in your website? You’ll be surprised to find out how easy that is. With only a few quick steps, you can have all that AutoCAD WS has to offer, right within your website!

In order to embed AutoCAD WS into your website, you will need to use the iframe html tag. The quickest way of doing that is by simply placing the AutoCAD WS home page in the iframe using the following html line :

 

<iframe src="http://www.autocadws.com" width="650" height="700"></iframe>

 

If you want a specific drawing to be displayed in your website (as shown in the example below), you can open the drawing in AutoCAD WS and use the “Get link to share” button, located in the “Share” ribbon tab. The get link feature provides you a public link for your drawing that you can use in your iframe tag. The html used for the sample below is :

 

<iframe src="https://www.autocadws.com/main/publish?link=SFtmaVVuQ0VTVzk3MEtH" width="650" height="700"></iframe>

 

And the result:

You can adjust the size you want for the iframe and customize the html as needed. If you are interested in a more advanced use of AutoCAD WS in your website like file system navigation or uploading files to AutoCAD WS for example, you can combine the example shown here with the JavaScript APIs we explored in one of our previous tutorials.

After you embed AutoCAD WS in your website, we invite you to share your results with us at feedback@autocadws.com. We would love to hear from you and provide additional support if needed.