Hallo,
bin neu hier im Forum und dies ist meine erste Frage.
Kann man die Bildgröße bei Screenshots ändern, die im Batch erstellt werden ??
Ich habe mir ein Script erstellt, was Screenshots in CATIA v5R14 manuell erzeugt.
Manuell ist die Bildgröße und Qualität einwandfrei.(Bildformat JPG)
Dann habe ich das Script umgeschrieben und es läuft auch im Batch (UNIX Workstation und Bildformat JPG).
Mein Problem ist aber das zu kleine Bild (Wight 300 Hight 400)
CATIA Option ??
Manuel CATIA Settings ändern ??
Script ??
Hier ein Teil vom Script:
------------------------------------------------------------
Set ProductDocument = CATIA.Documents.Open(CATProdFiles)
Set TopProduct = ProductDocument.Product
strName = TopProduct.Name
Set FullScreen = CATIA.ActiveWindow
FullScreen.Layout = catWindowGeomOnly
CATIA.ActiveWindow.ActiveViewer.Viewpoint3D.PutSightDirection Array(1, 1, -1)
CATIA.ActiveWindow.ActiveViewer.Viewpoint3D.PutUpDirection Array(0, 0, 1)
CATIA.StartCommand "CompassDisplayOff"
CATIA.ActiveWindow.ActiveViewer.Reframe
CATIA.StartCommand "Fit All In"
CATIA.RefreshDisplay=True
CATIA.ActiveWindow.ActiveViewer.Update
CATIA.SystemService.Print "generiere "+CATProdFiles+ "-screenshot !"
CATIA.ActiveWindow.ActiveViewer.CaptureToFile 5,"$INPUPATH/" & strName & ".jpg"
------------------------------------------------------
Wer kann mir helfen ??
MfG Petermaen
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP