<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: yunkaipx</title>
    <description>The latest articles on DEV Community by yunkaipx (@yunkaipx).</description>
    <link>https://dev.to/yunkaipx</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2670566%2F0e784bd9-d15e-45f9-92c7-ccc52f1ead0a.png</url>
      <title>DEV Community: yunkaipx</title>
      <link>https://dev.to/yunkaipx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yunkaipx"/>
    <language>en</language>
    <item>
      <title>The latest version of Chrome browser enable the solidWorks 3D ActiveX control</title>
      <dc:creator>yunkaipx</dc:creator>
      <pubDate>Thu, 09 Jan 2025 14:09:01 +0000</pubDate>
      <link>https://dev.to/yunkaipx/the-latest-version-of-chrome-browser-enable-solidworks-3d-controls-for-activex-controls-l6e</link>
      <guid>https://dev.to/yunkaipx/the-latest-version-of-chrome-browser-enable-solidworks-3d-controls-for-activex-controls-l6e</guid>
      <description>&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;SolidWorks Composer Player is a free application that allows content creators to distribute Composer content to any end user. Composer Player, like Composer, has high performance. Composer Player is not just a simple viewer, as content users can gain a deep interactive experience within the product's deliverables.&lt;br&gt;
   The allWebPlugin middleware is a middleware product that provides users with secure, reliable, and convenient browser plugin services, dedicated to re applying browser plugins to all browsers. It not only enables the use of ActiveX controls on modern browsers, but also has very simple and convenient integration.you can get it from &lt;a href="https://github.com/yunkaipx/allWebPlugin" rel="noopener noreferrer"&gt;github&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operation effect
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenn8yarg1z3y7vejti9t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fenn8yarg1z3y7vejti9t.png" alt="SolidWorks ActiveX On Edge " width="800" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frtj5p4ridhyixxdmy1yh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frtj5p4ridhyixxdmy1yh.png" alt="SolidWorks ActiveX On Chrome" width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Integrated code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function init(){   
    var installPackageUrl = "http://127.0.0.1:6651/install/allwebPlugin_x86_v2.0.1.16_20240806.exe";
    var installPackageVersion = "2.0.0.28"; 
    if(awp_IsInstall(installPackageVersion,installPackageUrl)){
        awp_CreatePlugin("SWPlayAPI","{410B702D-FCFC-46B7-A954-E876C84AE4C0}");
        if(SWPlayAPI){
            SWPlayAPI.FileName = "D:\\Users\\LK\\Desktop\\close.svg";
            SWPlayAPI.Password = "";
            SWPlayAPI.AutoPlay = true;
            SWPlayAPI.ShowViewBar = true;
            SWPlayAPI.ShowDiapoBar = true;  //ShowMarkerBar;ShowStandardToolBar;ShowRenderToolBar;ShowCameraToolBar
                                            //ShowTimelineBar;ShowStatusBar;ShowRedlineToolBar;ShowAnnotationToolBar;
                                            //ShowCuttingPlaneToolBar;ShowCollabToolBar;ShowGeometryToolBar;
                                            //ShowMain3DToolBar;ShowCameraViewToolBar;ShowVisibilityToolBar;
                                            //ShowPropertyBar;ShowMeasurementToolBar;ShowTreesBar;ShowViewBar
                                            //ShowBOMTreeBar;ShowAssemblyTreeBar;ShowCollabTreeBar;
                                            //ShowInformationBar;

            }
    }
}

function openFile()
{
    if(SWPlayAPI){
        var pluginUtilityObj = awp_getPluginUtility();
            pluginUtilityObj.GetLocalOpenDialog("smg文件(*.smg);;所有文件(*.*)").then(function(varFile){
                console.log(varFile);
                if(varFile != "")
                    SWPlayAPI.Password = "";
                    SWPlayAPI.FileName = varFile;
            });
    }
}
function Print(){
    if(SWPlayAPI){
        SWPlayAPI.Print();
    }
}
function openWebFile()
{
    if(SWPlayAPI){
        var pluginUtilityObj = awp_getPluginUtility();
        var httpclientObj = awp_getHttpClient();
        httpclientObj.Clear();
        if (httpclientObj.Open(0, "https://local.zsignyun.com:6652/doc/test.smg", false)) {
            httpclientObj.Send().then(function(data){
                if (httpclientObj.GetStatus() == 200) {
                    var varTempPath = pluginUtilityObj.GetTempPath();
                    var varFile = pluginUtilityObj.GetTempFileName(varTempPath,"zso") + ".smg";
                    httpclientObj.ResponseSaveToFile(varFile);
                    SWPlayAPI.Open(varFile);
                }
                else{
                    var httpStatus = httpclientObj.GetStatus();
                    if(httpclientObj.GetStatus() == 0)
                    {
                        alert("LoadFile test.jt Error:" + httpclientObj.GetErrorText());
                    }else{
                        alert("LoadFile test.jt Status:" + httpStatus + ",请确保安装目录下web\doc目录存在test.jt");
                    }
                }
                httpclientObj.Close();
            }); 
         }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>activex</category>
      <category>chrome</category>
      <category>solidworks</category>
      <category>webdev</category>
    </item>
    <item>
      <title>A way to enable ActiveX on chrome</title>
      <dc:creator>yunkaipx</dc:creator>
      <pubDate>Wed, 08 Jan 2025 12:36:19 +0000</pubDate>
      <link>https://dev.to/yunkaipx/a-way-to-enable-activex-on-chrome-2fl9</link>
      <guid>https://dev.to/yunkaipx/a-way-to-enable-activex-on-chrome-2fl9</guid>
      <description>&lt;p&gt;allWebPlugin Middle SoftWare is useful, It can Enable  ActiveX on Chrome,you can get it from &lt;a href="https://github.com/yunkaipx/allWebPlugin" rel="noopener noreferrer"&gt;github&lt;/a&gt;.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
