⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pvlaunch.js

📁 proe5.0野火版下载(中文版免费下载)
💻 JS
📖 第 1 页 / 共 4 页
字号:
        var point3d = new POINT3D;    if(index1 != -1 && index2 != -1)    {        point3d.x = spinCenter.substr(0,index1);        point3d.y = spinCenter.substr(index1,index2-index1);        point3d.z = spinCenter.substr(index2,spinCenter.length-index2);        }    else    {        return null;    }        return point3d;}function SetNavMethod(navMethod){    document.getElementById(this.pvCtl).SetNavMethod(navMethod);}function MoveUp(step){    document.getElementById(this.pvCtl).MoveUp(Number(step));}function MoveDown(step){    document.getElementById(this.pvCtl).MoveDown(Number(step));}function MoveLeft(step){    document.getElementById(this.pvCtl).MoveLeft(Number(step));}function MoveRight(step){    document.getElementById(this.pvCtl).MoveRight(Number(step));}function MoveForward(step){    document.getElementById(this.pvCtl).MoveForward(Number(step));}function MoveBackward(step){    document.getElementById(this.pvCtl).MoveBackward(Number(step));}function RotateUp(step){    document.getElementById(this.pvCtl).RotateUp(Number(step));}function RotateDown(step){   document.getElementById(this.pvCtl).RotateDown(Number(step));}function RotateLeft(step){   document.getElementById(this.pvCtl).RotateLeft(Number(step));}function RotateRight(step){    document.getElementById(this.pvCtl).RotateRight(Number(step));}function RotateClockwise(step){    document.getElementById(this.pvCtl).RotateClockwise(Number(step));}function RotateCounterClockwise(step){    document.getElementById(this.pvCtl).RotateCounterClockwise(Number(step));}function SetRenderMode(renderMode){	document.getElementById(this.pvCtl).SetRenderMode(renderMode);}function GetNumberOfSheets(){    return document.getElementById(this.pvCtl).GetNumberOfSheets();}function GetCurrentSheet(){    return document.getElementById(this.pvCtl).GetCurrentSheet();}function SetCurrentSheet(sheetNumber){    document.getElementById(this.pvCtl).SetCurrentSheet(Number(sheetNumber));}function SetInstanceLocation(instance, loc){    document.getElementById(this.pvCtl).SetInstanceLocation(instance,loc);  }function ResetInstanceLocation(instance){    document.getElementById(this.pvCtl).ResetInstanceLocation(instance);  }function RestoreAllLocations(){    document.getElementById(this.pvCtl).RestoreAllLocations();  }function SetMode(mode){    document.getElementById(this.pvCtl).SetMode(mode);  }function PvLiteApi(pvId){    // Public java script calls into PV    this.LoadModel=LoadModel;        this.GetNumOfAnnotations=GetNumOfAnnotations;    this.LoadAnnotation=LoadAnnotation;    this.GetAnnotationName=GetAnnotationName;    this.AddAnnotation=AddAnnotation;    this.AddAnnotationNote=AddAnnotationNote;        this.DeleteAnnotation=DeleteAnnotation;    this.CreateAnnotation=CreateAnnotation;    this.RenameAnnotation=RenameAnnotation;    this.SaveAnnotation=SaveAnnotation;    this.DeleteSelectedAnnotations=DeleteSelectedAnnotations;        this.ZoomToAll=ZoomToAll;    this.ZoomToSelected=ZoomToSelected;    this.SelectAll=SelectAll;    this.DeSelectAll=DeSelectAll;    this.SetBackgroundColor=SetBackgroundColor;    this.SetViewingMode=SetViewingMode;    this.ShowAll=ShowAll;    this.CopyToClipboard=CopyToClipboard;        this.GetNumOfViewables=GetNumOfViewables;    this.GetViewableName=GetViewableName;    this.LoadViewable=LoadViewable;    this.SetMode=SetMode;        this.ListInstances=ListInstances;    this.SelectInstance=SelectInstance;    this.DeSelectInstance=DeSelectInstance;    this.HideInstance=HideInstance;    this.ShowInstance=ShowInstance;      this.GetInstanceLocation=GetInstanceLocation;    this.SetInstanceLocation=SetInstanceLocation;    this.ResetInstanceLocation=ResetInstanceLocation;    this.RestoreAllLocations=RestoreAllLocations;    this.SetInstanceColor=SetInstanceColor;    this.SetInstanceTransparency=SetInstanceTransparency;    this.LoadInstance=LoadInstance;    this.UnloadInstance=UnloadInstance;    this.CaptureScreen=CaptureScreen;    this.GetPropertyValue=GetPropertyValue;    this.ListPropertyGroups=ListPropertyGroups;    this.LoadPropertyGroup=LoadPropertyGroup;    this.FindInstancesWithProperty=FindInstancesWithProperty;    this.GetInstanceName=GetInstanceName;    this.GetOrthographicWidth=GetOrthographicWidth;    this.GetPerspectiveHFOV=GetPerspectiveHFOV;    this.SetOrthographicWidth=SetOrthographicWidth;    this.SetPerspectiveHFOV=SetPerspectiveHFOV;    this.GetViewLocation=GetViewLocation;    this.SetViewLocation=SetViewLocation;    this.SetSpinCenter=SetSpinCenter;        this.GetSpinCenter=GetSpinCenter;        this.SetNavMethod=SetNavMethod;            this.MoveUp=MoveUp;    this.MoveDown=MoveDown;    this.MoveLeft=MoveLeft;    this.MoveRight=MoveRight;    this.MoveForward=MoveForward;    this.MoveBackward=MoveBackward;        this.RotateUp=RotateUp;    this.RotateDown=RotateDown;    this.RotateLeft=RotateLeft;    this.RotateRight=RotateRight;    this.RotateClockwise=RotateClockwise;    this.RotateCounterClockwise=RotateCounterClockwise;	this.SetRenderMode=SetRenderMode;    this.GetNumberOfSheets=GetNumberOfSheets;    this.GetCurrentSheet=GetCurrentSheet;    this.SetCurrentSheet=SetCurrentSheet;            // Public java script callbacks from the plugin    this.OnDoAction;    this.OnLoadComplete;    this.OnSetStatusText;    this.OnCloseWindow;    this.OnSelectInstance;    this.OnDeSelectInstance;    this.OnDeSelectAll;    this.OnBeginSelect;    this.OnEndSelect;    this.OnSaveScreenShot;        this.OnBeginGroupProperties;    this.OnPropertyGroup;    this.OnEndGroupProperties;    this.OnPropertyGroupLoaded;    this.OnBeginFindInstance;    this.OnFindInstance;    this.OnEndFindInstance;    this.OnAnnotationEvent;    this.OnBeginInstance;    this.OnInstance;    this.OnEndInstance;    this.OnPreSelectedInstance;    this.OnClearPreSelection;            // Priva te attributes    this.pvId         = pvId;    this.pvVerCtl     = "pvVerCtl"+pvId;    this.pvCtl        = "pvctl"+pvId;    this.runpview     = "runpview"+pvId;    this.upgradepview = "upgradepview"+pvId;    this.checkpview   = "checkpview"+pvId;    this.params;    }function isLocal(theUrl){    if(theUrl.indexOf("http") == 0)    {        return false;    }    else if(theUrl.indexOf("__pvbnfs") == 0)    {        return false;    }    else if(theUrl.indexOf("file") == 0)    {        return true;    }    else if(theUrl.indexOf(":") == 1)    {        return true;    }    else    {        return false;    }}function fixPath( s ){    return s.replace(/\\/g, "/");}function checkFileURL(theUrl){    var loc = theUrl.indexOf("file:///",0);    if(loc == -1)    {        loc = theUrl.indexOf("file://",0);        if(loc == -1)        {            loc = theUrl.indexOf(":",0);            if(loc == 1 || loc == -1)            {                theNewUrl = "file:///";                theNewUrl += theUrl;                return theNewUrl;            }        }        else        {            theNewUrl = "file:///";            theNewUrl += theUrl.substring(7,theUrl.length);            return theNewUrl;        }             }                    return theUrl;    }function ProductView(edition, sourceUrl, markupUrl, modifymarkupurl, loadAnnotation,loadViewable, uiconfig, configOptions){    var cookies = document.cookie;    var pvVerChecked = cookies.indexOf("pvlite_version_checked");    if (edition == "pvvalidate" || edition == "pvecadcompare")    {        _isEcad = true;    }    if(g_pvlaunchInitialised == false)    {        g_pvlaunchInitialised=true;        SetupPvLite();    }        pvApi = new PvLiteApi("pvctl"+g_pvliteInstance);        var pvParams;    if(edition)    {        pvParams += " edition='"+edition+"' ";    }    else    {        pvApi.thumbnail=true;        pvParams = " thumbnailView='true' ";    }    if(sourceUrl)    {        pvParams += "edurl='";        if(isRelativeUrl(sourceUrl))        {           pvParams += s_downloadDir;        }        pvParams += sourceUrl +"'";                pvParams += " renderatstartup='true'";    }        if(uiconfig)    {        pvParams  += " uiconfigurl='";        if(isRelativeUrl(uiconfig))        {            pvParams += s_downloadDir;        }        pvParams += uiconfig +"'";    }        if(configOptions)        configOptions += " lmbClick=\"false\"";    else        configOptions = "lmbClick=\"false\"";        pvParams  += " hosttype='webserver'";    if(modifymarkupurl){pvParams  += " modifymarkupurl='"  +modifymarkupurl + "'";}        if(loadAnnotation) {pvParams  += " renderannotation='" +loadAnnotation  + "'";}    if(loadViewable)   {pvParams  += " renderviewable='"   +loadViewable    + "'";}    if(configOptions)  {pvParams  += " configoptions='"    +configOptions   + "'";}    if(g_username)     {pvParams  += " username='"         +g_username      + "'";}    if(g_useremail)    {pvParams  += " useremail='"        +g_useremail     + "'";}    if(g_usertelno)    {pvParams  += " usertelno='"        +g_usertelno     + "'";}    if(g_heading)      {pvParams  += " heading='"          +g_heading       + "'";}    var baseUrl;    var newSourceUrl = fixPath(sourceUrl);    if(isRelativeUrl(newSourceUrl))    {        var newBaseUrl = fixPath(document.URL);        loc = newBaseUrl.lastIndexOf("/");        if(loc != -1)        {                            baseUrl = newBaseUrl.substring(0,loc);        }                loc = newSourceUrl.lastIndexOf('/');        if(loc != -1)        {             baseUrl+= "/";            baseUrl+= newSourceUrl.substring(0,loc+1);        }    }    else    {        loc = newSourceUrl.lastIndexOf('/');        if(loc != -1)        {             baseUrl = newSourceUrl.substring(0,loc+1);        }    }        baseUrl = checkFileURL(baseUrl);    pvParams  += " urlbase='" + baseUrl + "'";    pvApi.params = pvParams;    g_pvliteInstanceArray[g_pvliteInstance] = pvApi;    window.onload = docLoaded;    IECallbackEvents(pvApi);    document.write('<div style="position:relative;top:0;left:0;border-width:0px;border-style:none;width:100%;height:100%">');        // Upgrade div    document.write('<div align=center id='+pvApi.upgradepview+' style="position:relative;top:0;left:0;border-width:0px;border-style:none">');    document.write('</div>');//    if (s_docPluginVersion && pvVerChecked == "-1" )//    {//        document.write('<div id='+pvApi.checkpview+' style="visibility:hidden;position:absolute;top:2;left:2;zIndex=-1;width:0;height:0;border-style:none">');//        document.write(GetPvCheckHtml(pvApi));//        document.write('</div>');//        g_docLoadedAction = 1; // Test client//    }    // ProductView Lite div    document.write('<div id='+pvApi.runpview+' style="visibility:hidden;position:absolute;top:0;left:0;width:100%;height:100%;zIndex=-1;border-width:0px;border-style:none">');    document.write('</div>');    document.write('</div>');        g_pvliteInstance += 1;    return pvApi;}function SetUserDetails(username, telephone, email){    g_username  = username;    g_useremail = email;    g_usertelno = telephone;}function SetHeading(heading){    g_heading = heading;}function docLoaded(){    if(g_installingVerCheck)    {        // Only allow one pvvercheck installer to run.        return;            }        if (g_docLoadedAction == 0)    {        for(i=0;i<g_pvliteInstanceArray.length;++i)        {            StartPview(g_pvliteInstanceArray[i]);        }        return;    }        if (g_docLoadedAction == 1)    {        try        {            for(i=0;i<g_pvliteInstanceArray.length;++i)            {                var myObj = g_pvliteInstanceArray[i];                                                if (document.getElementById(myObj.pvVerCtl).ReadyState != 4)                {                    StartPview(myObj);                }                        else                {                    var isInstalled = 1; //document.getElementById(myObj.pvVerCtl).CheckPview(s_docPluginVersion);                    // var vi = document.getElementById(myObj.pvVerCtl).GetInstalledVersion();                    if (isInstalled == 0) // Pview Not installed so need to install it                    {                        if (typeof _pvliteString_Install != "undefined")                        {                            _local_Install= _pvliteString_Install;                        }                        document.getElementById(myObj.upgradepview).innerHTML += '<A class=wizardlabel HREF="javascript:void(DoInstall())"  TITLE="'+s_docPluginVersion+'">'+_local_Install+'</A>';                    }                    if (isInstalled == 1) //pview is installed and up to date so just run                    {                        StartPview(myObj);                    }                    if (isInstalled == 2) //pview is installed But can be upgraded                    {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -