public sealed class DimStyleTable : RhinoDocCommonTable<DimensionStyle>, ICollection<DimensionStyle>
Properties
Creates an array of default DimensionStyle objects
Returns an instance of the current DimensionStyle.
Indexers
this[]
#Methods
Adds a new DimensionStyle to the document.
public int Add()
dimstyle,
The dimension style to add
reference
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.
Returns: index of new AnnotationStyle.
Adds a new AnnotationStyle to the document. The new AnnotationStyle will be initialized with the current default AnnotationStyle properties.
Returns: index of new AnnotationStyle.
Clear
Marks all items as deleted.
public void Clear()
Removes an annotation style.
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.
Returns: Reference to the rhino object with the objectId or null if no such object could be found.
Implements: FindId
Retrieves a DimensionStyle object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
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.
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
Modifies dimension style settings.
public bool Modify()
newSettings,
This information is copied.
dimstyleId,
Id of dimension style
quiet
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.
public bool Modify()
newSettings,
This information is copied.
dimstyleIndex,
zero based index of dimension to set. Must be in the range 0 <= dimstyleIndex < DimStyleTable.Count.
quiet
if true, information message boxes pop up when illegal changes are attempted.
Returns: true if successful. false if dimstyleIndex is out of range
Purges any unused dimension styles.
Returns: The number of unused dimension styles that were purged.
Do not use. Use the SetCurrent(int, bool) method.
obsoleteUse the SetCurrent property.
Returns: Do not use.