CAD格式DWF嵌入到自己的网页中展示--Autodesk Design Review

网页上嵌入CAD图纸,用的 Autodesk Design Review控件嵌入IE,

网上的 dwf viewer方式没成功。

 

Head之间

<script type="text/javascript" language="javascript">   
  function ListSections()
    { var ECompViewer = ADViewer.ECompositeViewer;   
var Sections = ECompViewer.Sections;    
var secList = document.getElementById("SectionList");  
for (iSection = 1;(iSection <= Sections.Count); iSection++) 
{  var Section = Sections(iSection); 
       secList.innerHTML += Section.Title + "<BR>";   

   } 
</script> 

<script type="text/javascript" for="ADViewer" event="OnEndLoadItem(bstrItemType,vData, vResult)">  
if (bstrItemType == 'DOCUMENT') 
{ ListSections();
}  
</script>

 

body之间

<div id="canvas" style="position:absolute; top:0px; left:0px; width:780px; height:600px; text-align:center; background-color:white">
<object id="ADViewer" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" border="1" width="780" height="600" VIEWASTEXT>//创建Design Reiew对象
<param name="Src" value="Drawing2.dwf">
</object>
</div>

效果预览:

 

当然,别忘了下载控件,还有,需要在IE下运行,其他浏览器不太行

http://www.autodesk.com/products/design-review/download

http://download.autodesk.com/esd/designreview/2013/ADR/chs/SetupDesignReview2013.msi.zip

 

转载于:https://www.cnblogs.com/qiri07/p/5640610.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值