How to Publish AutoCAD Files to the Internet
One of the most frequently asked questions is “How can I use AutoCAD's capabilities called 'publish to web' with the Freewheel Project”. This project is a tool from the AutoDesk Test Labs, which allows registering users to store, run routines, and share data.
This has been published by Lynn Allen in one of the AutoDesk laboratories and this is the translation:
1. The first thing I did was create an example drawing. I called it publish_to_web_test.dwg. I know, I'm not very original. It looked something like this:
2 Using the publishing capabilities of AutoCAD, in the file menu.
This is not the Publish command that I always use to create DWF files. To publish the wizard has an interface through dialogues in the entire process, I selected the files, workspace and / or layouts, color scheme etc. Too easy.
3. Publishing to the web is different than publishing with the option to create dwf files, as it also creates an html page with the preferences of the dwf file. After completing the steps, I have set the files in my chosen folder:
4. The IM1.htm file is the key. I have specified multiple layouts or multiple dwg files, although the one file per post option can also be used. Finally the code looks like this:
<object id=”ADV” classid=”clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF” width=”100%” height=”100%”>
You can see the label that defines that the browser will invoke a file using the capabilities of the Freewheel Project, there is an identifier that implies that without using any other publishing sofwtare it does so using the capabilities offered by this AutoDesk application.
5. The Freewheel Project server needs to be activated to upload your file from a location on the web. So this location needs to be specified in the html. For my example, I have used http://labs.blogs.com/files/ADR2FW as a location, so I'll include this in my process. For your purposes, you will need to have a destination location, where you will store your data.
6. I have used a Berkeley utilities setup that includes a string called sed.exe. Using sed with code that looks like this:
s/%”>/%”/
s/<object id=”ADV”classid=”clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF”/<iframe scrolling=”no”/
yes/
/ / d
this allows me to convert the IM.htm as an automatic option. If you had more than one html file, you would need to run the script on each file.
7. I have run the script on IM1.htm, the result looks like this:
<iframe scrolling=”no” width=”100%” height=”100%”
src=”http://freewheel.labs.autodesk.com/dwf.aspx?path=http://labs.blogs.com/ADR2FW/IM1.dwf”>
Once the files are processed, you can post the configuration to the location you chose in step 5. I have uploaded the result to acwebpublish.htm.
So with a pinch of creative editing, which you can do manually you can automate the processes, you can publish your files to the web and others can view them without installing any software. So helping others share is a viable alternative in the lab. Several years later, AutoDesk launched AutoCAD WS, tool with which you can do this and much more with AutoCAD files on the Internet.
Very Good