public static WindowTranslator GetAkrBlWinTranslator(BlockReference blRefWindow) { WindowTranslator res = null; foreach (DynamicBlockReferenceProperty prop in blRefWindow.DynamicBlockReferencePropertyCollection) { if (prop.PropertyName.Equals(Settings.Default.BlockWindowVisibilityName, StringComparison.OrdinalIgnoreCase)) { string markNew = getNewMarkAkrWin(prop.Value.ToString()); res = new WindowTranslator(Settings.Default.BlockWindowName, markNew); break; } } return res; }
public WindowRedefine(bool isAkrBlWin, BlockReference blRefWinOld, WindowTranslator translatorW) { IdBlRef = blRefWinOld.Id; TranslatorW = translatorW; IdBtrOwner = blRefWinOld.OwnerId; if (isAkrBlWin) { Position = blRefWinOld.Position; } else { var extOldWind = blRefWinOld.GeometricExtentsСlean(); Position = extOldWind.MinPoint; } }
public static WindowTranslator GetAkrBlWinTranslator(BlockReference blRefWindow) { WindowTranslator res = null; foreach (DynamicBlockReferenceProperty prop in blRefWindow.DynamicBlockReferencePropertyCollection) { if (prop.PropertyName.Equals(Settings.Default.BlockWindowVisibilityName, StringComparison.OrdinalIgnoreCase)) { string markNew = getNewMarkAkrWin(prop.Value.ToString()); res = new WindowTranslator(Settings.Default.BlockWindowName, markNew); break; } } return(res); }