Blog

Security settings for IE

Attention: open in a new window. PDFPrintE-mail

Written by Michael Schilling Friday, 14 January 2011 09:10

See related Microsoft article here. (http://support.microsoft.com/kb/182569)

Example file to define security settings for Pro/ENGINEER and Web.Link applications:



Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
"1001"=dword:00000000
"1004"=dword:00000000
"1201"=dword:00000000
"1209"=dword:00000000
"1406"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\solunor.com]
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\solunor.com\dev]
"http"=dword:00000002

Overview for DWORD keys and their values 

   Value    Setting
   ----------------------------------------------------------------------------------
   1001     ActiveX controls and plug-ins: Download signed ActiveX controls
   1004     ActiveX controls and plug-ins: Download unsigned ActiveX controls
   1200     ActiveX controls and plug-ins: Run ActiveX controls and plug-ins
   1201     ActiveX controls and plug-ins: Initialize and script ActiveX controls not marked as safe for scripting
   1206     Miscellaneous: Allow scripting of Internet Explorer Web browser control ^
   1207     Reserved #
   1208     ActiveX controls and plug-ins: Allow previously unused ActiveX controls to run without prompt ^
   1209     ActiveX controls and plug-ins: Allow Scriptlets
   120A     ActiveX controls and plug-ins: ActiveX controls and plug-ins: Override Per-Site (domain-based) ActiveX restrictions
   120B     ActiveX controls and plug-ins: Override Per-Site (domain-based) ActiveX restrictions
   1400     Scripting: Active scripting
   1402     Scripting: Scripting of Java applets
   1405     ActiveX controls and plug-ins: Script ActiveX controls marked as safe for scripting
   1406     Miscellaneous: Access data sources across domains
   1407     Scripting: Allow Programmatic clipboard access
   1408     Reserved #
   1601     Miscellaneous: Submit non-encrypted form data
   1604     Downloads: Font download
   1605     Run Java #
   1606     Miscellaneous: Userdata persistence ^
   1607     Miscellaneous: Navigate sub-frames across different domains
   1608     Miscellaneous: Allow META REFRESH * ^
   1609     Miscellaneous: Display mixed content *
   160A     Miscellaneous: Include local directory path when uploading files to a server ^
   1800     Miscellaneous: Installation of desktop items
   1802     Miscellaneous: Drag and drop or copy and paste files
   1803     Downloads: File Download ^
   1804     Miscellaneous: Launching programs and files in an IFRAME
   1805     Launching programs and files in webview #
   1806     Miscellaneous: Launching applications and unsafe files
   1807     Reserved ** #
   1808     Reserved ** #
   1809     Miscellaneous: Use Pop-up Blocker ** ^
   180A     Reserved # 
   180B     Reserved #
   180C     Reserved #
   180D     Reserved #
   1A00     User Authentication: Logon
   1A02     Allow persistent cookies that are stored on your computer #
   1A03     Allow per-session cookies (not stored) #
   1A04     Miscellaneous: Don't prompt for client certificate selection when no certificates or only one certificate exists * ^
   1A05     Allow 3rd party persistent cookies *
   1A06     Allow 3rd party session cookies *
   1A10     Privacy Settings *
   1C00     Java permissions #
   1E05     Miscellaneous: Software channel permissions
   1F00     Reserved ** #
   2000     ActiveX controls and plug-ins: Binary and script behaviors
   2001     .NET Framework-reliant components: Run components signed with Authenticode
   2004     .NET Framework-reliant components: Run components not signed with Authenticode
   2100     Miscellaneous: Open files based on content, not file extension ** ^
   2101     Miscellaneous: Web sites in less privileged web content zone can navigate into this zone **
   2102     Miscellaneous: Allow script initiated windows without size or position constraints ** ^
   2103     Scripting: Allow status bar updates via script ^
   2104     Miscellaneous: Allow websites to open windows without address or status bars ^
   2105     Scripting: Allow websites to prompt for information using scripted windows ^
   2200     Downloads: Automatic prompting for file downloads ** ^
   2201     ActiveX controls and plug-ins: Automatic prompting for ActiveX controls ** ^
   2300     Miscellaneous: Allow web pages to use restricted protocols for active content **
   2301     Miscellaneous: Use Phishing Filter ^
   2400     .NET Framework: XAML browser applications
   2401     .NET Framework: XPS documents
   2402     .NET Framework: Loose XAML
   2500     Turn on Protected Mode [Vista only setting] #
   2600     Enable .NET Framework setup ^


   {AEBA21FA-782A-4A90-978D-B72164C80120}   First Party Cookie *
   {A8A88C49-5EB2-4990-A1A2-0876022C854F}   Third Party Cookie *

*  indicates an Internet Explorer 6 or later setting
** indicates a Windows XP Service Pack 2 or later setting
#  indicates a setting that is not displayed in the user interface in Internet Explorer 7
^  indicates a setting that only has two options, enabled or disabled

 

Pro/E EvalOutline like Info - Model Size

Attention: open in a new window. PDFPrintE-mail

Written by Michael Schilling Tuesday, 14 December 2010 21:17

This post describes how to evaluate a solids dimensions in Pro/ENGINEER using Pro/Web.Link. The approach is quite simple once you understand what’s going on. More information related to the implementation using PTC API JLink is available here: Solution Details - TPI 112757

The function EvalOutline() provides the key to evaluate solid geometry. It returns two points which describe the size of a imaginary rectangular box in which he solid would fit exactly. Once these two points have been evaluated all that’s left is to calculate the distance between these points which is represented by a diagonal.

You can get the same information using Pro/ENGINEER menu Info – Model Size. But to do the same thing programmatically you need to build your solution on the function described previously.

 
 
 
getBodyDiagonalInfo: function() {
  try {
    var cModel = this.getCurrentModel();                
    var mitems = cModel.ListItems(pfcCreate("pfcModelItemType").ITEM_COORD_SYS);
    var cor = mitems.Item(0);
    var trans3 = cor.CoordSys;
 
    var modtyp = pfcCreate("pfcModelItemTypes");
    var item1 = pfcCreate("pfcModelItemType").ITEM_AXIS;
    var item2 = pfcCreate("pfcModelItemType").ITEM_POINT;
    var item3 = pfcCreate("pfcModelItemType").ITEM_COORD_SYS;
 
    modtyp.Insert(0,item1);
    modtyp.Insert(1,item2);
    modtyp.Insert(2,item3);
    var outline = cModel.EvalOutline(trans3,modtyp);
    var point2 = outline.Item(0);
    var x = point2.Item(0);
    var y = point2.Item(1);
    var z = point2.Item(2);
    var point3 = outline.Item(1);
    var p = point3.Item(0);
    var q = point3.Item(1);
    var r = point3.Item(2);
    var sum = Math.pow(p - x, 2) + Math.pow(q - y, 2) + Math.pow(r - z, 2);
    var diagonal = Math.sqrt(sum);
    return diagonal;
  } catch (e) {
    throw e;
  }
}
 

 

   

Page 4 of 4