SolidWorksMakroprogrammierung

Methode · ModelDoc2

LBUpAt-Methode (ModelDoc2)

Erzeugt ein Loslassen der linken Maustaste an einer Modellposition.

Syntax

Sub LBUpAt( _
   ByVal Flags As Long, _
   ByVal X As Double, _
   ByVal Y As Double, _
   ByVal Z As Double _
)
swModel.LBUpAt &H1, 0.01, 0.02, 0

Parameter

FlagsLongByVal
Kombination aus MK_LBUTTON (&H1), MK_RBUTTON (&H2), MK_SHIFT (&H4), MK_CONTROL (&H8), MK_MBUTTON (&H10).
XDoubleByVal
x der Mausposition.
YDoubleByVal
y der Mausposition.
ZDoubleByVal
z der Mausposition.

Beispiel

' swModel ist eine Baugruppe, eine Komponente ist ausgewählt.
Const MK_LBUTTON As Long = &H1
swModel.LBDownAt MK_LBUTTON, 0, 0, 0
swModel.DragTo MK_LBUTTON, 0.05, 0, 0
swModel.LBUpAt 0, 0.05, 0, 0

Bemerkungen

Gegenstück zu ModelDoc2.LBDownAt. Wie dort sagt die Hilfe nicht, in welchem Koordinatensystem die Position gilt.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2001Plus

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

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