ViewMarkBasicTagAttributes Class |
The ViewMarkBasicTagAttributes class contains basic attributes for view mark tags.
SystemObject
Tekla.Structures.DrawingGenericAttributesBase
Tekla.Structures.DrawingViewMarkBasicTagAttributes
Tekla.Structures.DrawingSectionMarkBaseSectionMarkTagAttributes
Tekla.Structures.DrawingViewViewMarkTagAttributes
Tekla.Structures.DrawingGenericAttributesBase
Tekla.Structures.DrawingViewMarkBasicTagAttributes
Tekla.Structures.DrawingSectionMarkBaseSectionMarkTagAttributes
Tekla.Structures.DrawingViewViewMarkTagAttributes
Namespace: Tekla.Structures.Drawing
Assembly: Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
The ViewMarkBasicTagAttributes type exposes the following members.
| Name | Description | |
|---|---|---|
| ViewMarkBasicTagAttributes |
Creates a new mark tag attributes instance.
| |
| ViewMarkBasicTagAttributes(Vector, TagLocation, ContainerElement) |
Creates a new mark tag attributes instance with the given offset, location and content.
|
| Name | Description | |
|---|---|---|
| Location |
The location of the mark tag.
| |
| Offset |
The offset of the mark tag.
| |
| TagContent |
The tag content.
|
| Name | Description | |
|---|---|---|
| IsEqual |
Compares the current object with an object of the same type.
(Overrides GenericAttributesBaseIsEqual(Object).) |
Reads and modifies tag content of view mark:
using Tekla.Structures.Drawing; namespace ExampleViewMark { internal class Program { static void Main() { DrawingHandler dh = new DrawingHandler(); Drawing currentDrawing = dh.GetActiveDrawing(); DrawingObjectEnumerator doe = currentDrawing.GetSheet().GetAllViews(); while (doe.MoveNext()) { View drawingView = doe.Current as View; ContainerElement ce = drawingView.Attributes.TagsAttributes.TagA1.TagContent; string currentTextTagA1 = ce.GetUnformattedString(); // TagA2..TagA5 can be accessed and modified similarly drawingView.Attributes.TagsAttributes.TagA1.TagContent.Add(new TextElement("TagA1")); drawingView.Modify(); } currentDrawing.CommitChanges(); // Add breakpoint here to check the tags in the drawing View.ViewMarkTagsAttributes viewTags = new View.ViewMarkTagsAttributes { TagA1 = new View.ViewMarkTagAttributes(), }; viewTags.TagA1.TagContent.Add(new TextElement("Test")); doe.Reset(); while (doe.MoveNext()) { View drawingView = doe.Current as View; drawingView.Attributes.TagsAttributes = viewTags; drawingView.Modify(); } currentDrawing.CommitChanges(); // Add breakpoint here to check the tags in the drawing again } } }