SolidWorksMakroprogrammierung

Enumeration · SwConst

swElectricalConnectionPointType_e-Enumeration

Art des elektrischen Pfads beim Einfügen eines Anschlusspunkts mit InsertConnectionPoint, zum Beispiel Kabelbaum, Flachbandkabel oder Kabelrinne.

Bibliothek SwConst · 6 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swElectricalConnectionPoint_Harness

Syntax

Enum swElectricalConnectionPointType_e
    swElectricalConnectionPoint_Harness     = 1
    swElectricalConnectionPoint_CableOrWire = 2
    swElectricalConnectionPoint_Conduit     = 3
    swElectricalConnectionPoint_RibbonCable = 4
    swElectricalConnectionPoint_CableTray   = 5
    swElectricalConnectionPoint_Trunking    = 6
End Enum

Werte

KonstanteWertBedeutung
swElectricalConnectionPoint_Harness1Kabelbaum.
swElectricalConnectionPoint_CableOrWire2Kabel oder Leiter.
swElectricalConnectionPoint_Conduit3Schutzrohr (conduit).
swElectricalConnectionPoint_RibbonCable4Flachbandkabel.
swElectricalConnectionPoint_CableTray5Kabelrinne (cable tray).
swElectricalConnectionPoint_Trunking6Kabelkanal (trunking).

Beispiel

' swModel ist ein Teil, Routing ist geladen und eine kreisförmige Kante ist mit Markierung 1 ausgewählt.
Dim bOk As Boolean
' Stichlänge 25 mm
bOk = swModel.FeatureManager.InsertConnectionPoint(swConnectionPoint_Electrical, _
    swElectricalConnectionPoint_Harness, False, 0, 0.025, 0, 0, 0, "", 0, 0, False, "", "")
If False = bOk Then Debug.Print "Anschlusspunkt nicht eingefügt"

Bemerkungen

Du übergibst den Wert als SubType an FeatureManager.InsertConnectionPoint, wenn Type auf swConnectionPoint_Electrical aus swConnectionPointType_e steht. Der Befehl funktioniert nur mit geladenem Zusatzprogramm SOLIDWORKS Routing und nur in Teilen. Breite, Dicke und Schaltplan-Pin-ID gelten nur für Flachbandkabel.

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Beim Auslesen eines vorhandenen Anschlusspunkts liefert ConnectionPointFeatureData.RouteSubType dagegen Werte aus swElectricalSubType_e, die andere Namen und Zahlen haben.

Verwendet von

Siehe auch

Englisches Original: swElectricalConnectionPointType_e in der SOLIDWORKS API-Hilfe ↗

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