Post Image
By Matt GaidicaNovember 22, 2019In Uncategorized

Viewing a SolidWorks Assembly with eDrawings using Dropbox

At one time, it was possible to embed a drawing anywhere using code like this:

<iframe style="width:100%;height:400px;" data-ng-switch-when="3d" class="viewer-iframe ng-scope" frameborder="1" scrolling="no" data-ng-src="https://edrawings.solidworks.com/main.html?URL=YOURURL" src="https://edrawings.solidworks.com/main.html?URL=YOURURL"></iframe>

However, it appears that cross-site embedding (i.e. different domains) has been restricted. You can still use eDrawings as a host, just not on your own website (by using a URL with this format: https://edrawings.solidworks.com/main.html?URL=YOURURL). I found out that you can do this with Dropbox, but you have to modify the link:

Original: https://www.dropbox.com/s/oik690a005ktjry/Assem1_ARBOmini_v2.SLDASM?dl=0

Modified: https://www.dropbox.com/s/raw/oik690a005ktjry/Assem1_ARBOmini_v2.SLDASM

Notice the addition of /raw into the URL. Now you can place the link Drawings URL and share it.

https://edrawings.solidworks.com/main.html?URL=https://www.dropbox.com/s/raw/oik690a005ktjry/Assem1_ARBOmini_v2.SLDASM

svgUsing Turbolinks and jQuery dataTables in Rails 5
svg
svgBattery Calculators: Size, Weight, and Capacity