public sealed class DimStyleTable : RhinoDocCommonTable<DimensionStyle>, ICollection<DimensionStyle>
Properties
Creates an array of default DimensionStyle objects
Returns ModelComponentType.DimStyle.
Overrides: CommonComponentTable<T>.ComponentType
Returns an instance of the current DimensionStyle.
obsoleteUse the Current property.
Do not use. Use the Current property.
Indexers
Methods
Adds a new DimensionStyle to the document.
Parameters:
| dimstyle (DimensionStyle) | The dimension style to add |
| reference (bool) | if true the dimstyle will not be saved in files. |
Returns: index of new AnnotationStyle.
Adds a new AnnotationStyle to the document. The new AnnotationStyle will be initialized with the current default AnnotationStyle properties.
Adds a new AnnotationStyle to the document. The new AnnotationStyle will be initialized with the current default AnnotationStyle properties.
Parameters:
| name (string) | Name of the new AnnotationStyle. If null or empty, Rhino automatically generates the name. |
Returns: index of new AnnotationStyle.
Clear
public void Clear()
Marks all items as deleted.
Removes an annotation style.
Parameters:
| item (DimensionStyle) | The item to remove. |
Returns: True if the item was removed; false otherwise.
Overrides: CommonComponentTable<T>.Delete
obsoleteignoreDeleted is always considered true now. Use FindName.
FindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
Retrieves a DimensionStyle object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Parameters:
| index (int) | The index to search for. |
Returns: A DimensionStyle object, or null if none was found.
Finds the DimensionStyle with a given name and returns it. None is returned if no DimensionStyle is found.
Parameters:
| name (string) | The string to search. Deleted styles are ignored. |
Returns: The instance, or null.
Overrides: CommonComponentTable<T>.GetEnumerator
Get a unique name for a style that does not already exist in the DimStyle table
Get a unique name for a dimension style that does not already exist in the DimStyle table
Parameters:
| rootName (string) | prefix in name; typically the parent style name |
Modifies dimension style settings.
Parameters:
| newSettings (DimensionStyle) | This information is copied. |
| dimstyleId (Guid) | Id of dimension style |
| quiet (bool) | if true, information message boxes pop up when illegal changes are attempted. |
Returns: true if successful. false if Id is not already in table
Modifies dimension style settings.
Parameters:
| newSettings (DimensionStyle) | This information is copied. |
| dimstyleIndex (int) | zero based index of dimension to set. Must be in the range 0 <= dimstyleIndex < DimStyleTable.Count. |
| quiet (bool) | if true, information message boxes pop up when illegal changes are attempted. |
Returns: true if successful. false if dimstyleIndex is out of range
Parameters:
| dimstyle (DimensionStyle) | |
| annotation (AnnotationBase) |
Purges any unused dimension styles.
Returns: The number of unused dimension styles that were purged.
Sets the Current property.
obsoleteUse the SetCurrent property.
Do not use. Use the SetCurrent(int, bool) method.
Parameters:
| entry (DimensionStyle) |