Access this Gist via this shortened URL: https://git.io/vPj49
If anything changes, with regards to the material covered in this course, this will be the first place I share updates.
Access this Gist via this shortened URL: https://git.io/vPj49
If anything changes, with regards to the material covered in this course, this will be the first place I share updates.
| import os | |
| import scriptcontext | |
| import rhinoscriptsyntax as rs | |
| print "//export run started/////////////" | |
| # this function via mcneel/rhinoscriptsyntax | |
| #https://github.com/mcneel/rhinoscriptsyntax/blob/master/Scripts/rhinoscript/layer.py | |
| def layerNames(sort=False): |
| function Invoke-OSArchitectureCommand ( | |
| [Parameter(Mandatory=$true)] | |
| [ScriptBlock] | |
| $ScriptBlock, | |
| $ArgumentList | |
| ) { | |
| if ($PSHOME -match '\\syswow64\\') { | |
| $PowerShellx64 = $PSHOME -replace '\\syswow64\\','\sysnative\' | Join-Path -ChildPath powershell.exe |