|
CATIA V5 Programmierung : Mehrfachselektion unterschiedlicher Typen mit Hilfe eines Namens
Locke101 am 08.05.2007 um 15:36 Uhr (0)
Danke Proofin und YellowDevil,Proofin deine Methode klappt einwandfrei!!!!!!!YellowDevil könntest du mir das noch genauer erklären was da genau dahintersteckt?! Die Selection ist mich absolutes Neuland, ich blicke da nicht genau wie CATIA da tickt!!!!!!!!Gruß Locke101
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Bodys im Part benennen
Locke101 am 14.05.2007 um 15:48 Uhr (0)
Hallo,so wird immer der zuletzt eingefügte Body umbenannt:======================Sub CATMain()Dim documents1 As DocumentsSet documents1 = CATIA.DocumentsDim partDocument1 As PartDocumentSet partDocument1 = documents1.Item("NamePart.CATPart")Dim part1 As PartSet part1 = partDocument1.PartDim bodies1 As BodiesSet bodies1 = part1.Bodiesbodies1.Item(bodies1.Count).name = "NameBody"End Sub======================Gruß Locke101
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection.Search Problem mit R16
Locke101 am 22.05.2007 um 10:53 Uhr (0)
Hi,versuchs mal so:========================Dim productDocument1 As ProductDocumentSet productDocument1 = CATIA.ActiveDocumentDim selection1 As SelectionSet selection1 = productDocument1.Selectionselection1.clearSuchname = InputBox("Suchname eingeben") Suchname = Part1.1selection1.Search "CATAsmSearch.Part.Name=" & Suchname & ",all"============================Müsste funktionieren.Gruß Locke101
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : CATIA-fremde Datei öffnen
Locke101 am 12.06.2007 um 14:35 Uhr (0)
Hallo,ist es eigentlich möglich z.B. eine Textdatei aus CATIA heraus mit VBA zu öffnen, um eine zuvor ausgelesene Datei dem User des Makros zur Ansicht und evtl. Bearbeitung zu übergeben?Gruß Locke 101
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : CATIA-fremde Datei öffnen
Locke101 am 12.06.2007 um 14:57 Uhr (0)
Weiß mittlerweile das es z.B. über Dim objIE As ObjectSet objIE = CreateObject("InternetExplorer.Application")objIE.Visible = TrueobjIE.Navigate "Dateipfad"funktioniert. Weiß jemand wie die Strings hinter CreateObject auszusehen haben, um die gängigen Programme wie Word, ... (Excel ist in der Hilfe beschrieben) zu öffnen??
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Deklaration des Partnamens
Locke101 am 27.06.2007 um 11:30 Uhr (0)
Hi Eisbär,du kannst überall wo der Partname steht, diesen mit CATIA.ActiveDocument.Part.name ersetzen.Gruß Locke101
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Deklaration des Partnamens
Locke101 am 27.06.2007 um 16:38 Uhr (0)
und das gleiche Spiel hier:Set formula1 = relations1.CreateFormula("Formel.1", "", strParam1, "`Part3OP` ")wird zuSet formula1 = relations1.CreateFormula("Formel.1", "", strParam1, "`" & catia.activedocument.part.name & "OP` ")
|
In das Form CATIA V5 Programmierung wechseln |