New to this forum, referred here by my Tridium vendor. Looking for information on getting a provisioning robot built, I was told that I could find that service here. Read the forum rules, looked for the correct place to post, didn’t see anything that looked similar, sorry if I’m not in the correct place.
Can you provide more detail on what you want the robot to do.
You are in the right place. I’ll also post this on their discord for you as well.
Sorry it took so long to to get back with you, found your email in my junk folder.
Looking to automatically cerate folders and sort points for a BACnet device.
I would split this into two jobs, because only one of them is safe to run against a station that is already engineered.
Building the structure is the easy half. Under a BACnet device, the Points container is a BacnetPointDeviceExt, and the only folder it will accept is a BacnetPointFolder — that class’s isParentLegal accepts a BacnetPointDeviceExt or another BacnetPointFolder and nothing else, and the device extension’s getPointFolderType returns exactly that type. So a script creates folders by adding BacnetPointFolder instances, then adds control points into them: NumericPoint or NumericWritable, BooleanPoint or BooleanWritable, Enum, String, each with its proxyExt set to a BacnetProxyExt carrying objectId, propertyId (which already defaults to present-value) and propertyArrayIndex. Push every name through SlotPath.escape first; BACnet object names routinely contain characters that are illegal in a Niagara slot name, and add() throws on those.
You do not have to guess what is in the device either. The point device extension has a hidden submitPointDiscoveryJob action that submits the same discovery job the point manager uses and returns its ORD. The job’s children are DiscoveryPoint components with objectName, objectId, propertyIdentifier, index, value, facets and description, and the job itself exposes discover, discoverFacets and checkForPriorityArray actions, so you can pull engineering units and test for a priority array before you decide read-only versus writable. The part you have to write yourself is the type decision: the mapping from BACnet object type and ASN type to a Niagara point type lives in the Workbench-side point manager, not in the driver, so station-side code has to make that call itself. Duplicate detection is cheap, because the device extension indexes its points by objectId, property and array index.
Where it runs matters. The program module is an rt-profile module and ProgramService has a runRobot action, so a robot — one class with a single run() method, compiled in Workbench and stored on the station as bytecode — runs on the controller itself. You only need the Supervisor provisioning stack if you want to push the same robot at many stations: the Supervisor needs the provisioning licence feature plus the provisioningNiagara and batchJob modules, while the target controller needs no provisioning module and no provisioning licence, only the program module, a ProgramService, and a super-user account, since runRobot refuses anyone else. Signing counts too: if the code carries a signature it must verify against the station’s trust stores, and program.requireSigning makes that mandatory.
Now the trap, which is what catches people doing this to a live station: you cannot reparent an existing point. add() throws AlreadyParentedException for a component that already has a parent, so sorting existing points into folders is copy plus delete. The copy is a new component, and any link aimed at the old one breaks, because a link resolves its sourceOrd relative to the link’s own parent. Histories usually survive, since the default historyName is %parent.name% — the point’s own name, not its path — but renaming does move the history id. So generate folders before you create points, and on a station already built, prefer reorder() to sort slots in place, or tag the points and let a hierarchy present them grouped, rather than physically moving anything.
If you would rather buy this than build it, I take fixed-price Niagara module and robot work and can quote against a written spec.
Look into exportTags Module. It seems to do exactly what you’re describing.
Unless you want the folders to be created on the jace and then discover points and put them into those folders. Then you do need automation. Although, if its a one time thing and you have 15-20 folders worth of points, doing those by hand might just be worth the time.
If this is something that is repeated often, then I would say yes to automation.
Worth separating the two suggestions there, because one of them will cost someone a day.
exportTags is a different feature. Its runtime jar is the Supervisor to subordinate join machinery: BSupervisorExportTagNetworkExt and BSubordinateExportTagNetworkExt, BJoinProfile, BJoinJob and BJoinAction, plus the tag types it moves, BPointTag, BComponentTag, BHistoryImportTag, BSystemHistoryImportTag, BFileImportTag, BScheduleExportTag and BScheduleImportTag. That is how a Supervisor pulls a joining station’s points, histories, schedules and files into itself. There is nothing in the module that walks a device’s Points container, makes folders or arranges points, so it will not do the job in the first post.
The second half of your reply I agree with, and it is the part that decides this. For fifteen to twenty folders once, hand work wins. The robot only pays for itself when the same shape of device arrives repeatedly, and the honest break even is usually somewhere north of a dozen devices, not a dozen folders.
If it is repeated and someone does write it, one thing to know before it runs against a station that already exists. BHistoryExt.historyName defaults to BFormat.make(“%parent.name%”), so a point the robot renames keeps collecting history under a new id. The old series is still there with every reading in it and nothing pointing at it. Copy the point instead and you get the mirror image, two extensions writing into one id. Neither throws an error. You find it weeks later when a report comes up short.
Greenfield, none of that applies, which is why the robot is safe there. On an engineered station the rule is: sort and tag freely, rename nothing that already carries a history extension, and if a rename really is needed, set historyName explicitly to the old id first so the series survives.