How it works

CADViewer PRO & ENT allow users to draw redline objects and to save these redline objects to the server. In order to save redline objects to the server, a server CGI script or servlet is required. CADViewer sends redlines data via HTTP POST to the script on the server. When CGI script or servlet receives data from CADViewer, it is responsible for saving redline data to the server and sends a message end with one of the two keywords "ok" or "dialog" back to CADViewer to end the transaction. CADViewer inteprets the "ok" message obtained from the script as a sucessful transaction. CADViewer will display all the message received from the server ending with the keyword "dialog". The content of the message is up to the web administrators. CADViewer also allow users to read redline files saved on the server.
If you are going to use CADViewer with Windows 2003 Server and do not want to install Apache, do read the following resource about setting up Perl: http://www.visualwin.com/Perl/ and http://www.wrensoft.com/zoom/support/faq_cgi.html#cgi_misbehaved

Important check list

CADViewer cannot open/save redline files unless the following requirements are met

How to open and save redline objects

About the TMS scripts

When users click the redline save button, CADViewer will send the following parameters via HTTP POST to the server script (defined by param "redline_cgi" such as <param name="redline_cgi" value="http://xyz.com/cgi-bin/redsaver.pl">):
  • "saveLocation" is defined by one of the followings:
  • If "save_redline_file_to_url" is defined, "saveURL=true" and the "saveLocation" value will contain the path and redline file name. "na" will be blank in this case
  • Otherwise, "saveURL=false" and the name of the redline file will be "dn"_"na".red and the location will be the the "saveLocation" defined by either param "redline_file" or param "redline_file_path"


  • When drawing and drawing+redline are saved, TMS uses the servlet "FileUploadServlet" and CADViewer send out via HTTP POST The redline objects can be opened and saved on the local machine or on the server. To specify the location where users are allowed to open or save redlines object, the following parameter can be used: When the user clicks on the open or save button in the redline tool bar, CADViewer will If you want to save/open redline file to a folder on the server, make sure that this folder is web accessible (i.e You can use a browser to browse this folder)

    How to set up to open redline file on a local machine

    How to set up to open redline file on the server

    How to set up to save redline objects on a local machine

    How to set up to save redline objects on the server

    Examples