|
CATIA V5 Programmierung : Messen im CATProduct. Abstand Part Part oder Part Product
EngineeredByRobberts am 03.05.2010 um 08:48 Uhr (0)
im V5Automation.chmgibts es unter Working with Space Analysis ein Beispiel wie man mit DMU Space Analysis Abstände berechnen kann CAASpaMaximumSeparation.CATScript------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : selection als reference verwenden
EngineeredByRobberts am 26.07.2010 um 09:14 Uhr (0)
so in etwa:Set reference1 = Document1.Part.CreateReferenceFromObject(oSelection.Item(1).Value)------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : selection als reference verwenden
EngineeredByRobberts am 26.07.2010 um 10:47 Uhr (0)
Dir fehlt noch folgende Zeile:Set hybridShapeFactory1 = Document1.Part.HybridShapeFactory------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Vererbung
EngineeredByRobberts am 27.05.2010 um 20:12 Uhr (0)
ProductDocument-Product-Products-Product-PartDocument-Part--------------------CATProduct---------------------- ----CATPart------Wie genau das Part im Product eingefügt wird hängt da von ab ob das Part neu erstellt werden muss oder schon vorhanden ist, ob das Part schon in Catia geladen ist,und ob es schon in einem Product verbaut ist, dazu gibt es unterschiedliche Methoden, siehe Seite 439------------------- Robert[Diese Nachricht wurde von EngineeredByRobberts am 27. Mai. 2010 editiert.]
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : For-Schleife mit Aktivitätsabfrage
EngineeredByRobberts am 04.05.2010 um 16:18 Uhr (1)
1: über der betreffende Parameter, und nicht über HybridShapeIntersection.Activate weil es diese Eigenschaft für HybridShapeIntersection nicht gibt2: in dein countname befindet sich (hoffentlich) ein Object vom Typ HybridShapeIntersection, du solltest aber lieber sel.Search "(CATGmoSearch.GSMIntersect),all" verwenden um sicher zu sein das sich alle Intersects und nur Intersects in deine Selection befinden3: um die betreffende Parameter zu finden könntest du so was ähnliches verwenden:Dim body1 As VariantDi ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Properties im Part erzeugen
EngineeredByRobberts am 29.04.2010 um 21:30 Uhr (1)
ich denke es funktioniert deswegen nicht weil der string "FINISH" auch in "FINISH_LOCAL" und "FINISH_CODE" enthalten ist------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Properties im Part erzeugen
EngineeredByRobberts am 29.04.2010 um 21:56 Uhr (1)
oder haltIf Right(parameters1.Item(i).Name,6) = "FINISH" ThenIch habe schon eine halbe Flasche Wein auf, ich glaub ich muss langsam auch aufgeben ------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Properties im Part erzeugen
EngineeredByRobberts am 29.04.2010 um 21:37 Uhr (1)
mach doch einfach:If parameters1.Item(i).Name = "FINISH" Then Parameter_vorhanden19 = TrueEnd IfEdit: Else entfernt------------------- Robert[Diese Nachricht wurde von EngineeredByRobberts am 29. Apr. 2010 editiert.]
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : CATIA V5 Parameter über Python auslesen
EngineeredByRobberts am 29.06.2010 um 12:40 Uhr (0)
So wie unten funktioniert es bei mir einwandfrei, ist aber wie oben schon erwähnt nur bei Längen und Winkel so einfach.Sub CATMain()Dim productDocument1 As DocumentDim selection1 As Selection Dim I As Integer Dim TextFile1 As FileDim fileSys As ObjectDim oStream As TextStreamDim Outputtxt, Tmptxt As String Dim param1 As Parameter Set fileSys = CATIA.FileSystemSet productDocument1 = CATIA.ActiveDocumentOutputtxt = productDocum ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : CATIA V5 Parameter über Python auslesen
EngineeredByRobberts am 29.06.2010 um 15:05 Uhr (0)
du suchst halt jetzt nach Constraints und nicht nach Parameter, deswegen muss der Typ jetzt auf Constraint umgestellt werden.Der If Then Schleife kannst du dich sparen da du schon nach Constraints vom Typ Length gesucht hast.Sub CATMain()Dim productDocument1 As DocumentDim selection1 As Selection Dim I As Integer Dim TextFile1 As FileDim fileSys As ObjectDim oStream As TextStreamDim Outputtxt, Tmptxt As String Dim constraint1 As Constraint ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Formatierung von Drawing Texten
EngineeredByRobberts am 01.06.2010 um 15:29 Uhr (0)
Property TextProperties( ) As CATIADrawingTextProperties (Read Only) Returns the text properties of the drawing text. Allows to modify the whole text properties. To manage a sub part of the text use GetParameterOnSubString Example: This example retrieves in TextProperties the text properties of the MyText drawing text. Dim TextProperties As DrawingTextProperties Set TextProperties = MyText.TextProperties------------------- Robert
|
| In das Form CATIA V5 Programmierung wechseln |