예제 #1
0
 /// <summary>
 /// Gets the attribute definitions.
 /// </summary>
 /// <param name="btr">The BTR.</param>
 /// <param name="mode">The mode.</param>
 /// <param name="includingErased">if set to <c>true</c> [including erased].</param>
 /// <param name="openObjectsOnLockedLayers">if set to <c>true</c> [open objects on locked layers].</param>
 /// <returns></returns>
 public static IEnumerable <AttributeDefinition> GetAttributeDefinitions(this BlockTableRecord btr,
                                                                         OpenMode mode = OpenMode.ForRead, bool includingErased = false, bool openObjectsOnLockedLayers = false)
 {
     return(btr.GetAttributeDefinitions(btr.Database.TransactionManager.TopTransaction, mode, includingErased,
                                        openObjectsOnLockedLayers));
 }