|
CATIA V5 Programmierung : Tastebefehl zum Öffnen der Parameter im Baum
ogard1 am 13.08.2008 um 11:41 Uhr (0)
Hallo,dau kannst die Expand auch auf nur 1 Selektierten Bauteil anwenden"Expand Selection"Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Nur Elemente direkt unter eines GeoSets auswählen
ogard1 am 19.02.2009 um 22:32 Uhr (0)
Hallo,anbei der Code, ein Geometrische Set ist "InputObjectType" und muß oder kann nur selektiert werden, gibt anzahl der Elemente darunter.Viel Spass Dim InputObjectType(0) Set Document = CATIA.ActiveDocument Set Selection = Document.Selection Set HybridBodies = Document.Part.HybridBodies InputObjectType(0)="HybridBody" Status=Selection.SelectElement2(InputObjectType,"Geometrical Set",true)selection.Search "CATPrtSearch.GeometricFeature,sel"For i=1 To selection.CountMsgBox (Selection.Count)Next
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Auswahl zweier Zeichnungen zum kopieren einer Ansicht
ogard1 am 10.10.2008 um 08:38 Uhr (0)
Hallo Roland,es gibt ein Macro vom Dassault "CAADriDuplicateViewhier ein Auszug vielleicht hilft dir schon weiter Create an object of selection for the source document Dim oSelectionSource As Selection Set oSelectionSource = oDrawingSource.Selection Create the Drawing document Target Dim oDrawingTarget As DrawingDocument Set oDrawingTarget = CATIA.Documents.Add("Drawing") Create an object of selection for the source document Dim oSelectionTarget As Selection Set oSelectionTarget = oDrawingTarget.Se ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Element aus Selektion entfernen
ogard1 am 17.02.2009 um 20:26 Uhr (0)
Hallo,selection.Search "Name= item(1)"selection.Remove(1)ist nicht getestet Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection.Add // Method Add of object Selection failed
ogard1 am 31.03.2009 um 21:23 Uhr (0)
Hallo,was für Dokument möchtest du übergeben, CATPart?If TypeName(CATIA.Documents.Item(i)) = "CATPart" Thenprobiere es soGruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Abfrage, ob PartBody leer ist (in Produkt-Struktur)
ogard1 am 18.11.2008 um 12:25 Uhr (0)
Hallo,schau mal hier: http://ww3.cad.de/foren/ubb/Forum137/HTML/002601.shtml#000003 die Such Funktion nutzen!!!!Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Annotation im Produkt
ogard1 am 13.02.2009 um 20:01 Uhr (0)
Hallo,schon mal versucht mit dem Recoder Macro aufzunehmen?In der V5Automation.chm gibts ein Beispiel "CAADmuApproval.CATScript" das mann anpassen kanndie Funktion, siehe BildGruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Kinematik
ogard1 am 19.01.2009 um 19:03 Uhr (0)
Hallo,in dem Beispiel ist auch Part definiert, und zwar "Item(1)", das erste PartDim oProductToFix As Product Set oProductToFix = oRootProduct.Products.Item(1) da kannst du je nach dem , dein gewünschten Part eingeben 1 oder 2.Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Schnitt (Section) per Makro in eigenem Fenster öffnen
ogard1 am 11.03.2010 um 19:08 Uhr (0)
Hallo,Set selection = productDocument.Selectionselection.Search "Name=*Section.1,*" CATIA.StartCommand ("Open the associated viewer(s)")Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Nur Elemente direkt unter eines GeoSets auswählen
ogard1 am 20.02.2009 um 09:19 Uhr (0)
Hallo, sorry habe mich auf "die Anzahl der Elemente" bezogen, die Anzahl der Geometrischen Sets bekommst du über "OpenBody"selection.Search "CATPrtSearch.OpenBodyFeature,sel"Gruß
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Material zuweissen
ogard1 am 14.11.2004 um 15:30 Uhr (0)
Hallo, ich habe ein Problem ich habe ein CATProduct mit cca 550 Bauteilen und ein Material Katalog mit 3 Material Familien (Car Paints, Elektrik, Motor) und jeweils 9 mat. Pro Familie Die Bauteile sind aufgeteilt in 4 Gruppen, aber man kann leider den material nicht gruppenweise vergeben, also muss man über zb. Über die Teilebezeichnung machen. Da habe ich das Problem wenn ich anfange zu selektieren Dim productDocument1 As Document Set productDocument1 = CATIA.ActiveDocument Dim selection1 As Selecti ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Farbe zurücksetzen
ogard1 am 26.11.2008 um 11:40 Uhr (8)
Hallo,ihr habt recht, ich hab es auch mit Elements probiert, funct auch nicht so richtigSorrySub CATMain() Set ElementDoc = CATIA.ActiveDocument Set UserSelection = ElementDoc.Selection Set visPropertySet1 = UserSelection.VisProperties visPropertySet1.SetRealColor 255, 255, 255, 0End Sub
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Auswahl zweier Zeichnungen zum kopieren einer Ansicht
ogard1 am 12.10.2008 um 12:05 Uhr (0)
Hallo Roland,vielleicht kann man etwas mit "Macro Parametern" machenhabe es versucht leider ohne gewünschten Erfolg vielleicht kannst du damit anfangen.die Idee ist nach dem öffnen der 2 Bauteile zwei Parameter "String" definieren für Quelle und Ziel Drawing, die Value ist "Drawing"Sub CatMain (Source , Target)die Quelle und Ziel Drawing selektieren, die werte dann zwischenspeichern und an Selection übergeben.Gruß
|
| In das Form CATIA V5 Programmierung wechseln |