0

我已经在我的电脑上安装了 3D XML 查看器插件,Firefox 检测到它并且我允许了它。

我在服务器配置中添加了.3dxml扩展作为类型。"application/octet-stream"

我用这段代码加载我的文件;

<object type='application/x-3dxmlplugin' id='3DXMLPluginId'>
<param name='DocumentFile' value='/img/test.3dxml'>
</object>

什么都没有显示。如果我在代码中输入了错误的文件名,我会收到来自 3dxml 插件的警告,例如文件错误或损坏。但是当文件名很好时,我什么也得不到,没有警告,控制台中什么也没有。

4

1 回答 1

0

Bellow 是在我的 CATIA_Portable_Script_Center 中完成的示例。这个想法是使用正确的classid

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><head>
<title>3DXML embeded page</title>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV class=copy>You will see a 3DXML file opened from DS website only if you 
have installed the free 3DXML player from Dassault Systemes (link <A 
href="http://www.3ds.com/products/3dvia/3d-xml/1/">http://www.3ds.com/products/3dvia/3d-xml/1/</A>&nbsp;).</DIV>
<DIV class=copy>To see how to embed a 3DXML file&nbsp;in a web page just view 
this page source code.</DIV>
<DIV class=copy>© 2010 Dassault Systemes - All rights reserved.</DIV>
<OBJECT id=viewer border=1 
codeBase="http://www.3ds.com/fileadmin/PRODUCTS/3DVIA/3DXML/3dxml/3DXMLPlayerOnlineInstaller.exe" 
classid=clsid:5ABD296B-F8A0-436C-B2F7-B19170C43D28 width=800 height=600>   <PARAM NAME="_cx" VALUE="21166"><PARAM NAME="_cy" VALUE="15875"><PARAM    NAME="DocumentFile" VALUE="http://a3.media.3ds.com/fileadmin/PRODUCTS/3DVIA/3DXML/gallery/3dxml_models/press_rink_axe_fta.3dxml"><PARAM NAME="Data" VALUE="">    
</OBJECT>
<DIV></DIV>

</BODY>
</html>
于 2016-02-14T20:54:09.647 回答