cad web预览 工具
加载的方法需写在$(document).ready(function(){}) 中
加载转换的图纸文件
图纸文件是四个SVG/JS 文件,由 AutoXchange转换生成
下载地址:http://www.tailormade.com/downloads/ax2017_W32_01.zip
>ax2015 -i=mypath/myinputfile.dwg -o=mypath/myoutputfile.js -f=js -size=2800 -prec=1 -ml=0.4
// Open a drawing instance
var FileNameNoExtension = "T2-03"; // Name of the drawing file to be loaded , it contains of a set of 4 files,
var FileNamePath = "../drawings/"; // Path to the drawing file to be loaded, path is relative from the calling document
cvjs_LoadDrawing("floorPlan", FileNamePath, FileNameNoExtension);
加载图纸(需安装转换工具)
// Open a drawing instance
var FileNameUrl = "http://creator.vizquery.com/City_map.dwg";
var FileNameUrlNoExtension = "City_map";
cvjs_LoadDrawing_Conversion("floorPlan", FileNameUrl, FileNameUrlNoExtension, "", "");
2021-09-09 17:24:47
492KB
cad
web
1