@mike15 wrote:
Using VBScript, how do I pass the String id of an array to methods that accept only String ids?
For example:
Option Explicit
Call Main() Sub Main() ' Get object to be split Dim arrBlock : arrBlock = Rhino.ObjectsByName("Block", True) Dim blockToSplit Dim s For Each s In arrBlock MsgBox "Object to split: " + s blockToSplit = s Next ' Get objects to split with Dim arrPlane : arrPlane = Rhino.ObjectsByName("Plane", True) For Each s In arrPlane MsgBox "Object to cut with: " + s Next Call Rhino.SplitBrep(blockToSplit, arrPlane) ' <--- FAILS End Sub
SplitBrep
requiresString
s as input andarrPlane
is an array. How can I get the ID of the arrayarrPlane
to pass toSplitBrep
?
Posts: 3
Participants: 2