|
CATIA V5 Programmierung : Durchzählen von Körpern
prosper am 17.09.2005 um 16:08 Uhr (0)
Hallo, in diesem Beispiel muss ein Part offen sein.Sub CATMainset obodies = CATIA.AtciveDocument.Part.Bodiesanzahlkoerper = 10for i = 1 to anzahlkoerper set onewbody = obodies.Add() onewbody.Name = "Welle." & inextend SubReicht dir sowas?Chris
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Parameter Count, nicht vorhanden dann Abbruch
moppesle am 10.01.2012 um 07:30 Uhr (1)
Hallo Daniel,danke für deine Mühe.Leider ist das nicht ganz was ich gesucht habe. Hab mich vieleicht nicht richtig ausgedrückt.Ich gehe Rekursiv durch meine Struktur, und möchte in jedem Part den Parameter verändern.Wenn dieser Parameter im Part nicht enthalten ist (was auch sein kann) soll das Makro einfach ohne Fehlermeldung weiterlaufen und nichts an diesem Part ändern. (The methode Item failed)ist dann die Meldung die ich bekomme.Gruß Uwe
|
| In das Form CATIA V5 Programmierung wechseln |
 BeispielN.zip |
CATIA V5 Programmierung : Probleme mit UserSel
wulfgang am 04.03.2010 um 14:02 Uhr (0)
Also, das mit der Referenz erzeugen klappt. Ich wollte das ganze nun so erweitern, dass die beiden Koordinatensysteme der beiden Parts im Beispiel kongruent gesetzt werden.Erhalte dann aber die Meldung Zitat:Run-time error -2147467259((80004005):The method AddBiEltCst failedKann jemand noch einmal einen Blick darauf werden?Code:Sub CATMain()Dim constraint1 As ConstraintWeiß niemand etwas?:( Dim reference1 As ReferenceDim product1 As ProductDim productDocument1 As Document Dim intRefObj As INFITF.R ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Warum ReferenceProduct
HoBLila am 30.09.2009 um 16:48 Uhr (0)
Nutz es doch einfach nicht, wenn du es nicht brauchst und als unnütz betrachtest. Nein, also dein ReferenceProduct ist im Baum an der Stelle, wo dein Part ist.Das siehst Du doch auch im CATIA:Documents :--Document :--Product :--ReferenceProduct :--Part :--Product :--ReferenceProduct :--Partim CATIA bekommst Du also auch ein product (Instance) wenn Du ein Part einhängst. Dieses Product enthält z.B. die Verlinkungen und die Transformationsmatrix, die dein Part im Raum positioniert.- ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : NC Parameter bearbeiten
HoBLila am 22.07.2009 um 18:56 Uhr (0)
Habe mir gerade dein Bild angeschaut und festgestellt, dass das was ich da zumindest glaube zu sehen, noch viel einfacher ist, als ich gedacht hatte:Code:Option ExplicitPublic Sub CATMain() Dim selWork As INFITF.Selection Dim objWork As Object Dim manuprogWork As MANUFACTURING.ManufacturingProgram Set selWork = CATIA.ActiveDocument.Selection Set manuprogWork = selWork.Item2(1).Value MsgBox manuprogWork.DescriptionEnd SubEinfach Spliten nach vbCrLf und dann eben den String danach weiter s ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Längere Edge einer Intersection messen
student1992 am 23.08.2017 um 15:22 Uhr (1)
mit selection meine ich die user selektion(also dass der anwender mit der selectelement2 methode selektiert)
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Ebenen in Makro umbenennen und löschen
JanF am 21.01.2003 um 00:35 Uhr (0)
Hallo Axel, "Referenz" ist ja der Name von hybridBodie1. Den versuche es mal mit CATIA.ActiveDocument.Selection.Add hybriedBodie1 Gruss Jan
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Drawing Selection Font Size
bgrittmann am 08.03.2016 um 20:15 Uhr (1)
Hi CristianoNice workaround.I have no better idea.Best regards,Bernd------------------Warum einfach, wenn es auch kompliziert geht.
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Problem mit Selection
martin2 am 30.08.2008 um 16:54 Uhr (0)
Hallo nochmal,habs mit viel rumprobieren doch noch hinbekommen.Hat sich also erledigt...Gruß Martin
|
| In das Form CATIA V5 Programmierung wechseln |
 |
CATIA V5 Programmierung : Interactiv body selection
Sylas am 09.01.2019 um 10:24 Uhr (15)
Zitat:Original erstellt von bgrittmann:ServusPer Makro geht es per FindObject.GrußBerndDas ist das Bernd! Danke dir
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Wert über Formula zuweisen
ThomasJay am 18.01.2013 um 12:13 Uhr (0)
habs gefunden:Code:Set Abstand1 = selection.Item(i).Value.DimensionsFormula3 = Paras.GetNameToUseInRelation(Abschnitt1)
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Defekte Constraints markieren
RSchulz am 13.01.2014 um 09:58 Uhr (1)
Hallo,hier noch ein Beispiel in VBACode:Sub CATMain() Dim oMainPRD As ProductDocument Set oMainPRD = CATIA.ActiveDocument Call Mark_DefConst(oMainPRD) End SubSub Mark_DefConst(ByVal oPRDDoc As ProductDocument) Dim oPRD As Product Dim oConsts As Constraints Dim oConst As Constraint Dim oSel As Selection Dim RetCode As Integer Set oSel = oPRDDoc.Selection oSel.Clear Set oPRD = oPRDDoc.Product Set oConsts = oPRD.Connections("CATIAConstraints") For Each oConst In oConsts If oConst.St ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Copy&PasteSpecial mir R12 SP02
Stoffel am 10.12.2003 um 14:39 Uhr (0)
Ich habe keine Veröffentlichungen in meinem Produkt und bekomme trotzdem diesen Copy/Paste Fehler. Gleiches Symptom: Unter R10/R11 gehts, unter der R12 funktioniert das Paste nicht. Die bekannte Qualität aus Frankreich.... :-( Grüße
|
| In das Form CATIA V5 Programmierung wechseln |