/// <summary> /// Gets all the alignment's profile views /// </summary> /// <param name="alignment"></param> /// <returns></returns> public static IList <ProfileView> GetProfileViews(AlignmentNode alignment) { if (alignment is null) { throw new ArgumentNullException("Alignment is null!"); } IList <ProfileView> ret = new List <ProfileView>(); ObjectIdCollection pViewIds = alignment.AeccAlignment.GetProfileViewIds(); foreach (ObjectId pViewId in pViewIds) { if (!pViewId.IsValid || pViewId.IsErased || pViewId.IsEffectivelyErased) { continue; } ProfileView pView = GetByObjectId(pViewId); ret.Add(pView); } return(ret); }
/// <summary> /// Sets the alignment which this part references. /// </summary> /// <param name="value"></param> public void SetRefAlignment(DynAlignment value) => SetValue(value?.InternalObjectId ?? ObjectId.Null);