Monthly Archives: August 2015

Creo Relations for Parts

This is a small tutorial showing how to use relations in PTC Creo.

To create a part related to the other part, especially in moving Creo assemblies, the best option is to use Creo relations.

Assembly below shows a sliding window, where a metal flat extrusion length is related to the window hole width.

To use the relation please go to tools tab, click Relations and then in the drop down menu select option features. Then select both: feature in a ‘parent’ part, where the extrusion length will be taken from, and then driven feature, in my case it will be the extrude feature. Note, some new dimensions will appear on your 3D model: Continue reading Creo Relations for Parts

How to read Windows 10 Serial Number (Key)

The windows 10 key is stored in the registry as a binary record so you can’t read it.

To read the key the quickest method is to copy the code below, paste to the new notepad file and save as “productkey.vbs” on your desktop.

Then executed file will display the Windows 10 key.

The script should work in Microsoft Windows 7 and 8, however I have not tested this.

Set WshShell = CreateObject(“WScript.Shell”)
MsgBox ConvertToKey(WshShell.RegRead(“HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId”))

Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Cur = 0
x = 14
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 – i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = “-” & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function