Is there a way to get number of processors with Ruby in Sketchup.
I've found on internet solutions like this
- Code: Select all
require 'win32ole'
wmi = WIN32OLE.connect("winmgmts://")
num = wmi.ExecQuery("select * from Win32_ComputerSystem").NumberOfProcessors
problem is when I run this in Sketchup I get error
- Code: Select all
- unknown property or method `NumberOfProcessors'
HRESULT error code:0x80020006
Unknown name.
Error: #<WIN32OLERuntimeError: unknown property or method `NumberOfProcessors'
HRESULT error code:0x80020006
Unknown name.>
I'm using win32ole posted here: [Plugin Library] Win32API and Win32OLE so files

