SolidWorksMakroprogrammierung

Eigenschaft · TableAnnotation

AnchorType-Eigenschaft (TableAnnotation)

Liest oder setzt, mit welcher Ecke eine Tabelle an ihrem Ankerpunkt hängt.

Syntax

Property AnchorType As Long
swTable.AnchorType = swBOMConfigurationAnchor_TopRight

Wert

Ein Wert aus swBOMConfigurationAnchorType_e:

  • swBOMConfigurationAnchor_TopLeft (1): oben links
  • swBOMConfigurationAnchor_TopRight (2): oben rechts
  • swBOMConfigurationAnchor_BottomLeft (3): unten links
  • swBOMConfigurationAnchor_BottomRight (4): unten rechts

Beispiel

' swTable ist eine Tabelle (TableAnnotation), etwa aus View.GetFirstTableAnnotation2.
swTable.AnchorType = swBOMConfigurationAnchor_BottomRight
swTable.Anchored = True

Bemerkungen

Der Wert bestimmt auch, welchen Punkt Annotation.GetPosition und Annotation.SetPosition2 bei einer Tabelle meinen. Die Enumeration heißt nach Stücklisten, die Hilfe nennt sie aber für alle Tabellen. Das Hilfebeispiel dazu heißt „Get and Set Table Anchor of Hole Table“.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2004

Englisches Original: ITableAnnotation::AnchorType in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)

Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.