|
CATIA V5 Programmierung : Anfängerfrage Reframe / FileSelectionBox
merlin74 am 18.03.2009 um 15:37 Uhr (0)
Hallo Miteinander, folgendes Script soll nur eine Datei öffnen und "Fit all in" ausführen. Macht es aber leider nicht (Fit all in). Wenn ich das Script ein zweites mal aufrufe wenn die Datei bereits geöffnet ist, dann funktioniert es. Language="VBSCRIPT"Sub CATMain()Dim documents1 As DocumentsSet documents1 = CATIA.DocumentsDim partDocument1 As DocumentDim strfile As Stringstrfile = CATIA.FileSelectionBox("Select a file", "*.CATPart", CatFileSelectionModeOpen)Set partDocument1 = documents1.Open(strfile)Dim ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Anfängerfrage Reframe / FileSelectionBox
merlin74 am 18.03.2009 um 16:58 Uhr (0)
ok, bei mir steht das halt in zwei Zeilen: Set documents1 = CATIA.DocumentsSet partDocument1 = documents1.Open(strfile)Ändert aber leider nichts am Ablauf.
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Anfängerfrage Reframe / FileSelectionBox
merlin74 am 19.03.2009 um 08:31 Uhr (0)
Hallo Andy, das mit dem VBA wäre kein Problem. Werde ich mir mal anschauen. @all:Reframe für nun so funktionieren:Language="VBSCRIPT"Sub CATMain()Dim partDocument1 As DocumentDim strfile As Stringstrfile = CATIA.FileSelectionBox("Select a file", "*.CATP*", CatFileSelectionModeOpen)Set partDocument1 = CATIA.Documents.Open(strfile)Dim specsAndGeomWindow1 As WindowSet specsAndGeomWindow1 = CATIA.ActiveWindowDim viewer3D1 As ViewerSet viewer3D1 = specsAndGeomWindow1.ActiveViewerCATIA.StartCommand("Multi-View") ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Anfängerfrage Reframe / FileSelectionBox
merlin74 am 19.03.2009 um 13:22 Uhr (0)
Hallo Andy, sorry das ich so dumm frage, aber ich weis es wirklich nicht besser. Gibt es nicht eine Möglichkeit den "Datei öffnen" Dialog wie im Catia aufzurufen. Dort hab ich ja auch die Möglichkeit von Multiselekt. GrüßeMerlin
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Anfängerfrage Reframe / FileSelectionBox
merlin74 am 19.03.2009 um 16:02 Uhr (0)
Ich hab was ganz einfaches gefunden, wie ich an den Öffnen-Dialog von Catia komme: CATIA.StartCommand "Öffnen"Leider funktioniert dann das Reframe bei der ersten ausgewählten Datei wieder nicht mehr. Ich bin soweit, ich gebs auf. Danke an alle für die Hilfe. GrüßeMerlin
|
In das Form CATIA V5 Programmierung wechseln |