Witam, udało mi się zautomatyzować import obrazu na planie solidworks, ale na końcu sekwencji obraz jest wybierany i nie mogę opuścić tego zaznaczenia za pomocą mojego kodu.
Function codebarreDRAW(FCB As String, namePL As String)
'Import of the barcode or QRcode on the solidworks plan
'Variable declaration
Dim myModelView As Object
Dim swModel As ModelDoc2
Dim swApp As SldWorks.SldWorks
Dim Errors As Long
Dim swLoadWarnings As Long
Dim Fplan As String
Dim L As Double
Dim H As Double
Dim value As Integer
Dim coef As Double
Dim part As Object
'Variable initialisation
Fplan = namePL & ".SLDDRW"
Set swApp = Application.SldWorks
'Draw window activation
Set swModel = swApp.ActivateDoc3(Fplan, False, swRebuildOnActivation_e.swRebuildActiveDoc, Errors)
Set part = swApp.ActiveDoc
Dim SkPicture As Object
'Insertion of the barcode or QRcode in the draw
Set SkPicture = part.SketchManager.InsertSketchPicture(FCB)
'Retrieving the barcode size
value = SkPicture.GetSize(L, H)
'Definition of the size and position of the bar code
SkPicture.SetSize L * coefAGRimg, H * coefAGRimg, True
SkPicture.SetOrigin PosX, PosY
End Function
Chciałbym zasymulować kliknięcie na zieloną literę V.
Jeśli ktoś ma jakiś pomysł, jestem za tym.
Dziękuję