Enumeration · SwConst
swElectricalConnectionPointType_e-Enumeration
Art des elektrischen Pfads beim Einfügen eines Anschlusspunkts mit InsertConnectionPoint, zum Beispiel Kabelbaum, Flachbandkabel oder Kabelrinne.
Syntax
Enum swElectricalConnectionPointType_e
swElectricalConnectionPoint_Harness = 1
swElectricalConnectionPoint_CableOrWire = 2
swElectricalConnectionPoint_Conduit = 3
swElectricalConnectionPoint_RibbonCable = 4
swElectricalConnectionPoint_CableTray = 5
swElectricalConnectionPoint_Trunking = 6
End EnumWerte
| Konstante | Wert | Bedeutung |
|---|---|---|
swElectricalConnectionPoint_Harness | 1 | Kabelbaum. |
swElectricalConnectionPoint_CableOrWire | 2 | Kabel oder Leiter. |
swElectricalConnectionPoint_Conduit | 3 | Schutzrohr (conduit). |
swElectricalConnectionPoint_RibbonCable | 4 | Flachbandkabel. |
swElectricalConnectionPoint_CableTray | 5 | Kabelrinne (cable tray). |
swElectricalConnectionPoint_Trunking | 6 | Kabelkanal (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.