/// <summary> /// Returns the panel zone assignment data for a point object. /// If no panel zone assignment is made to the point object, an error is returned. /// </summary> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void FillPanelZone() { if (_apiPointObject == null) { return; } _apiPointObject.GetPanelZone(NodeName, out var propertyType, out var thickness, out var k1Out, out var k2Out, out var linkProperty, out var connectivity, out var localAxisFrom, out var localAxisAngle); _panelZoneProperties = new PanelZoneProperties { PropertyType = propertyType, Thickness = thickness, K1 = k1Out, K2 = k2Out, LinkProperty = linkProperty, Connectivity = connectivity, LocalAxisFrom = localAxisFrom, LocalAxisAngle = localAxisAngle }; }
/// <summary> /// Sets panel zone assignments to point objects. Any existing panel zone assignments are replaced by the new assignments. /// </summary> /// <param name="panelZoneProperties">The panel zone properties.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public void SetPanelZone(PanelZoneProperties panelZoneProperties) { _apiPointObject?.SetPanelZone(NodeName, panelZoneProperties.PropertyType, panelZoneProperties.Thickness, panelZoneProperties.K1, panelZoneProperties.K2, panelZoneProperties.LinkProperty, panelZoneProperties.Connectivity, panelZoneProperties.LocalAxisFrom, panelZoneProperties.LocalAxisAngle); _panelZoneProperties = panelZoneProperties; }