Is it possible to create a new level, via API?
I am using the latest version of VisualARQ2: 2.13.2.17721. On Rhino 6.
The grasshopper approach described here works without issues.
But I am failing to do it via API.
The following code, returns empty guid for ‘level_id’ variable
import clr
clr.AddReference('VisualARQ.Script')
import VisualARQ.Script as va
# create building
buildingName = 'Test Building'
buildingElevation = 0.0
building_id = va.AddBuilding(buildingName, buildingElevation) # returns a valid guid
# create level
levelName = '08'
levelElevation = 24000.0
level_id = va.AddLevel(building_id, levelName, levelElevation) # returns an empty guid: '00000000-0000-0000-0000-000000000000'
I am running this code, on a blank 3dm file - so no Levels or Buildings created in vaLevels.
What am I doing wrong?
I am entirely grateful for your assistance in advance.