Rhino crashing when using VisualARQ's SetObjectSectionPatternColor method

Hello,

I’m trying to make a script using the SetObjectSectionPatternColor method. When I run the following code, Rhino crashes and closes instantly.

import rhinoscriptsyntax as rs
import clr
clr.AddReference("VisualARQ.Script")
import VisualARQ.Script as va

color = rs.CreateColor(255,0,0)

objectId = rs.GetObject("Pick any object")
if objectId:
	va.SetObjectSectionPatternColor(objectId, color)

Any idea why this happens?

Here is my system information if needed

Rhino 7 SR32 2023-8-9 (Rhino 7, 7.32.23221.10241, Git hash:master @ 3d9c816c4cd57561d12d8f53246bce304f314ba2)
License type: Commerciale, build 2023-08-09
License details: Cloud Zoo

Windows 11 (10.0.22621 SR0.0) or greater (Physical RAM: 32Gb)

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 3060 (NVidia) Memory: 12GB, Driver date: 6-8-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 536.23
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port 0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 6-8-2023
Driver Version: 31.0.15.3623
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 12 GB

Rhino plugins that do not ship with Rhino
C:\Users\conta\Downloads\SafeLayout.rhp “SafeLayout” 1.1.0.2
C:\Program Files\Rhino 7\Plug-ins\Tibidabo\VisualARQ.rhp “VisualARQ”
C:\Users\conta\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\SpeckleRhino2 (8dd5f30b-a13d-4a24-abdc-3e05c8c87143)\SpeckleConnectorRhino.rhp “SpeckleConnectorRhino” 2.15.1.11412
C:\Program Files\Rhino 7\Plug-ins\Tibidabo\Tibidabo.rhp “Tibidabo”
C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\V7\VRayForRhino.rhp “V-Ray for Rhino”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RPC.rhp “RPC”
C:\Program Files\Rhino 7\Plug-ins\RhinoBonusTools.rhp “Rhino Bonus Tools”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\Grasshopper\GrasshopperPlugin.rhp “Grasshopper” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.32.23221.10241
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”

Hi @antoine3,

It looks like the SetObjectSectionPatternColor method is producing the crash. This has already been reported to find a solution, so I will let you know as soon as we have it ready.

2 Likes

Hello @antoine3,

We have already fixed this error in the upcoming version. You can download it here so that you can keep working: http://visualarq.s3.amazonaws.com/download/visualarq-2.13.2.17648-rhino7-setup-snapshot.msi

1 Like

Hi @alfmelbev,
Thank you, I tried it and it works :slight_smile:

1 Like

Hi @alfmelbev ,
Thank you for the quick update.
Will there be a Rhino 6 version of the 2.13.2 as well?

Hi @djordje,

Sure, you can try it here: http://visualarq.s3.amazonaws.com/download/visualarq-2.13.2.17648-rhino6-setup-snapshot.msi

1 Like

Thank you @alfmelbev .
So I can use this one, as the latest official version of VisualARQ 2?

Hi @djordje,

It hasn’t been officially published yet but yes, you can use it as you were using the current version.

1 Like