![]() ![]() The conversion parameters are standard set-up from within AutoXchange: -prec=2, -size=2800 -ml=0.4 This means that CADViewer JS will read up the file and it is deleted on server after reading. the resulting is located on the server as a stream. Now I want to set up the parameters for the conversion call, if I do not do anything, the conversion is set up to load FileNameUrl as a file (see RestAPI for other methods), or: cvjs_setConverter(converter, version) or: cvjs_setConverterCredentials(username, password) ![]() cvjs_Init_ConversionServer(rest_api_url, rest_api_php, username, password) If I want to overwrite these values with settings for my own server where I have installed AutoXchange and the controlling scripts, Window.alert("The server with the rest API is at :"+mycontrollerlocation+"\nThe php doc is: "+mycontroller+"\nThe converter is: "+converter+"\nThe recommended version is: "+converterVersion) Var converterVersion = cvjs_restApiConverterVersion() We also would like to know the recommended converter version We also would like the recommended converter Var mycontrollerlocation = cvjs_restApiControllerLocation() Then we check which rest API location the current CADViewer JS version is initialized to: Var mycontroller = cvjs_restApiController() First we check which rest API the current CADViewer JS version is initialized to: I need to set variables to point to my server where I have installed AutoXchange and the controlling scripts,Ĭvjs_setRestApiControllerLocation(" cvjs_setRestApiController("call-Api_JS_04_05.php") Var FileNameUrlNoExtension = "City_base_map" var FileNameUrl = "/home/cadviewer/creator/City_base_map.dwg" // file for server to pick up, it can also be a local path on the server Var FileNameUrl = "" // file for server to pick up ![]() On how to setup the server, please look at: Setting up server for CADViewer JS We use the follwing coding in the CADViewer JS client side implementation to make CADViewer JS point to your server side implementation of AutoXchange. Code Sample - Advanced viewing on-the-fly ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |