Parameters
- element
- The element that the circuit location is based on.
await QueuedTask.Run(() => { using (NetworkSource networkSource = telecomDomainNetwork.NetworkSources.FirstOrDefault(ns => ns.Name.Contains(assetGroupName))) using (AssetGroup assetGroup = networkSource.GetAssetGroup(assetTypeName)) using (AssetType assetType = assetGroup.GetAssetType(assetTypeName)) { if (assetType == null) { throw new Exception($"Asset type '{assetTypeName}' not found in group '{assetGroupName}'."); } TelecomElement telecomElement = utilityNetwork.CreateElement(assetType, globalID) as TelecomElement; // Use the telecom element to create a circuit location. CircuitLocation circuitLocation = new CircuitLocation(telecomElement); } });
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)