SolidWorksMakroprogrammierung

Enumeration · SwConst

swStructureProfileMirrorType_e-Enumeration

Um welche Achse das Profil eines Tragwerk-Elements gespiegelt wird: die horizontale oder die vertikale Achse.

Bibliothek SwConst · 2 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swStructureProfileMirrorType_HorizontalAxis

Syntax

Enum swStructureProfileMirrorType_e
    swStructureProfileMirrorType_HorizontalAxis = 0
    swStructureProfileMirrorType_VerticalAxis   = 1
End Enum

Werte

KonstanteWertBedeutung
swStructureProfileMirrorType_HorizontalAxis0Das Profil wird um seine horizontale Achse gespiegelt.
swStructureProfileMirrorType_VerticalAxis1Das Profil wird um seine vertikale Achse gespiegelt.

Beispiel

' swElement ist eine StructureSystemMemberFeatureData, etwa aus ModelDocExtension.CreateStructureSystemMemberData.
Dim swProfil As SldWorks.StructureSystemMemberProfile
Set swProfil = swElement.MemberProfile
swProfil.MirrorProfile = True
swProfil.ProfileMirrorType = swStructureProfileMirrorType_VerticalAxis

Bemerkungen

Den Wert liest und setzt du mit StructureSystemMemberProfile.ProfileMirrorType. Er gilt nur, wenn StructureSystemMemberProfile.MirrorProfile True ist. Schalte das Spiegeln also zuerst ein.

Welche Profilachse an einem Objekt ausgerichtet wird, legst du getrennt davon mit einem Wert aus swStructureProfileAlignmentType_e fest. Die Hilfe beschreibt die Werte nur mit ihrem Namen.

Verwendet von

Siehe auch

Englisches Original: swStructureProfileMirrorType_e in der SOLIDWORKS API-Hilfe ↗

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