|
CATIA V5 Programmierung : Herausfinden ob eine Sketch aktiv ist
imation1999 am 20.09.2013 um 09:40 Uhr (1)
Hallo RAA,vielen Dank für Deine Antwort.Deine Lösung sel1.Search ("Sketcher.AbsoluteAxis;in")Set CurSketch = PartDok1.Selection.FindObject("CATIASketch")ist nicht zu schön, aber funktioniert. Danke nochmal!
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Einzelne Elemente von eine Achsensystem selektieren mit Selection.search
imation1999 am 28.07.2016 um 06:24 Uhr (10)
Morgen,hast Du mal so versucht:Code:selection.add(OriginPoint)selection.Search "Type=*,sel"
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Body von Part in Produkt selektieren/verstecken
imation1999 am 25.09.2012 um 12:21 Uhr (0)
Bei mir werden nur die genannten Bodys verstecken.
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Part-makro Schritte durch Produkt fuehren
imation1999 am 06.12.2013 um 10:18 Uhr (1)
Ja, klar!Änder mal so ab:Code:sFilePath = "c:" & ProdDoc.Product.Name & ".txt"Normaleweise ist das PartName gleich wie Instance Name, oder?
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Verweis aus einer Drawing aus, auf eine Part in einem Produkt
imation1999 am 29.08.2013 um 10:25 Uhr (1)
Hallo Zusammen,habt Ihr eventuell neue Idee den Names des Parts auszulesen?Vielen Dank im Voras[Diese Nachricht wurde von imation1999 am 29. Aug. 2013 editiert.]
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Makro programmieren um definierte Löcher zu finden
imation1999 am 18.04.2013 um 18:23 Uhr (0)
Versuch mal mit folgende Code:Code:Sub CATMain()set selection1 = CATIA.ActiveDocument.Selection----nach Bohrungen suchenSelection1.search ".hole,all" ----Selection sichernDim SelElemente() As ObjectReDim SelElemente(Selection1.Count) For i = 1 To Selection1.Count Set SelElemente(i) = Selection1.Item(i)Next dim length1 as lengthdim hole1 dim durchmesser durchmesser = inputbox ("Bitte geben sie den gesuchten Durchmesser an!", "Eingabe gesuchter Durchmesser", durchmesser)----Selection wieder herstel ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : CATAllPart in Produkt umwandeln
imation1999 am 30.10.2012 um 10:18 Uhr (1)
GENAU!!! Besten Dank!
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : GeoSet Kopieren von Part zu Part
imation1999 am 12.03.2015 um 07:14 Uhr (1)
Hallo Joe,Code: For n = 1 To oSourcePart.HybridBodies.Count oSel.Clear oSel.Add oSourcePart.HybridBodies.Item(n) oSel.Copy oSel.Clear oSel.Add oDestPart ----- du musst hier die Ziel GeoSet selektieren, statt Zielpart oSel.PasteSpecial "CATPrtResultWithOutLink" NextzB.:Code: Dim oSel2 Set oSel2 = oDestDoc.Selection For n = 1 To oSourcePart.HybridBodies.Count oSel.Clear oSel.Add oSourcePart.HybridBodies.Item(n) oSel.Copy oSel2.Add oDestPart.HybridBodies.Item(1 ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Mehrere Flächen extrahieren - ohne Schleife
imation1999 am 20.09.2012 um 08:57 Uhr (0)
Morgen Zusammen,folgendes Problem:ich habe ein Selection mit mehreren Elemente (Flächen aus ein Solid). Aus diese Elemente möchte ich in einem Step mehrere "Extract"s zu machen. (ohne Schleife, also for i = 1 to oSel.count spielt nicht).so habe ich mir das vorgestellt:Code:Set hybridShapeExtract1 = hybridShapeFactory1.AddNewExtract(reference1)Wie kriege ich ein Reference aus meine Selection hin?Vielen Dankim Voraus
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Get coordinates from Unterzusammenbau (Produkt) Achsenkreuz
imation1999 am 19.09.2013 um 13:44 Uhr (1)
Hallo Sylas,wie sieht dein Code bisher aus?
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Body von Part in Produkt selektieren/verstecken
imation1999 am 25.09.2012 um 12:05 Uhr (0)
Hallo Benjamin, wenn ich die Aufgabe gut verstanden:HauptProduct muß ACTIV sein.Code:Language="VBSCRIPT"Sub CATMain()Dim productDocument1 As DocumentSet productDocument1 = CATIA.ActiveDocumentDim selection1 As SelectionSet selection1 = productDocument1.Selectionselection1.Search "(Name="PartName" & CATPrtSearch.PartFeature),all"selection1.Search "(Name="BodyName" & ((((CATStFreeStyleSearch.BodyFeature + CATPrtSearch.BodyFeature) + CATGmoSearch.BodyFeature) + CATSpdSearch.SpdBodyRef) + CATSpdSearch.Bo ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection add
imation1999 am 21.02.2014 um 09:22 Uhr (1)
Hallo Zusammen,ich würde ein Element aus mein selection entfernen.Mein Code sieht so aus:Code:Sub CATMain()Dim partDocument1 As DocumentSet partDocument1 = CATIA.ActiveDocumentSet part1 = partDocument1.PartSet hybridBodies1 = part1.HybridBodiesSet hybridBody1 = hybridBodies1.Item("Geometrical Set.1")Set hybridShapes1 = hybridBody1.HybridShapesSet hybridShapePointCoord1 = hybridShapes1.Item("Point.2")Dim selection1 As SelectionSet selection1 = partDocument1.Selectionselection1.Search "(((((CATStFreeStyleSea ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : GeoSet Kopieren von Part zu Part
imation1999 am 12.08.2015 um 20:22 Uhr (5)
Hallo Joe,wie weit bist Du mit diesem Makro gekommen?
|
| In das Form CATIA V5 Programmierung wechseln |