2016-02-14 3 views
0

J'ai installé le plugin 3D XML Viewer sur mon PC et Firefox l'a détecté et je l'ai autorisé.Fichiers 3DXML Catia ne montrant pas

J'ai ajouté l'extension .3dxml au type "application/octet-stream" dans la configuration du serveur.

Je charge mon fichier avec ce code;

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

Rien n'est montré. Si je mets un mauvais nom de fichier dans mon code, je reçois un avertissement du plugin 3dxml comme quoi le fichier est mauvais ou corrompu. Mais quand le nom de fichier est bon je n'ai rien du tout, aucun avertissement, rien dans la console.

Répondre

0

Ci-dessous un exemple fait dans mon CATIA_Portable_Script_Center. L'idée est d'utiliser la bonne classe

<!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>