|
CATIA V5 Programmierung : Update in Selection
MaxZ am 03.06.2005 um 13:35 Uhr (0)
Hallo zusammen! Hätt da wieder mal ne Frage: Kann ich per part.updateobject (selection) oder ähnlich nur eine Selektion updaten? Oder geht nur das komplette part.update ? Vielen Dank schonmal im voraus & schönes Wochenende!!! Max
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Exemplarname von Parts im Produkt ändern
MaxZ am 18.07.2005 um 12:02 Uhr (0)
Hallo Holger! Hier mal ein kleines Beispiel wie sowas aussehen kann: Sub CATMain() Set productDocument1 = CATIA.ActiveDocument Set selection1 = productDocument1.Selection selection1.Search "CATProductSearch.Part,all" For i = 1 To selection1.Count Set productDocument1 = CATIA.ActiveDocument Set product1 = productDocument1.Product Set products1 = product1.Products Set product2 = products1.Item(selection1.Item(i).Value. ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection
MaxZ am 27.07.2005 um 10:40 Uhr (0)
Hallo! Versuchs mal mit: selection1.Search "(Name=Kugellager + (Name=Nadellager & (((((CATProductSearch.Part + CATStFreeStyleSearch.PartFeature) + CATAsmSearch.Part) + CATPrtSearch.PartFeature) + CATGmoSearch.PartFeature) + CATPcsSearch.Part))),all" musst eben gegebenfalls noch an deine Lager und/oder Teiletypen anpssen. Bei mir klappts. Hoffs hilft! Ciao Max ------------------ --- Der frühe Vogel fällt nicht weit vom Stamm. ---
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Exemplarname von Parts im Produkt ändern
MaxZ am 19.07.2005 um 10:46 Uhr (0)
okay, dann schreibst du vermutlich mit CATScript, da brauchts das i nicht, aber die Language-Zeile: Language = "CATScript" Sub CATMain() Set productDocument1 = CATIA.ActiveDocument Set selection1 = productDocument1.Selection selection1.Search "CATProductSearch.Part,all" For i = 1 To selection1.Count Set productDocument1 = CATIA.ActiveDocument Set product1 = productDocument1.Product Set products1 = product1.Products Se ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Part in einer Prodkuktstruktur ansprechen
MaxZ am 12.07.2005 um 15:33 Uhr (0)
hallo! zum einfügen eines openbody muss dass erstellte part ausgewählt sein. das part erzeugen und openbody einfügen könnte so aussehen: Sub CATMain() Dim productDocument1 As ProductDocument Set productDocument1 = CATIA.ActiveDocument Dim product1 As Product Set product1 = productDocument1.Product Dim products1 As Products Set products1 = product1.Products Dim product2 As Product Set product2 = products1.AddNewComponent( Part , Neuerzeugtes_Part ) Se ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection und VisProperties
MaxZ am 30.05.2005 um 15:20 Uhr (0)
... oder kann mir bitte jemand sagen wie man die einzelnen Elemente einer Selection anspricht? geht das überhaupt? Ciao Max
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Feature anordnung
MaxZ am 12.07.2005 um 14:59 Uhr (0)
bilder weiß ich doch zu würdigen! wie man was ans ende verschiebt per makro weiß ich leider auch nicht. ich würds so machen das ichs such, selektier, kopier, lösch, MainBody suchen & selektieren, einfügen und umbenennen. und dann stehts am ende. zB: Sub CATMain() Set partDocument1 = CATIA.ActiveDocument Set selection1 = partDocument1.Selection selection1.Search Name= FEATURE ,all Set partDocument1 = CATIA.ActiveDocument Set selection1 = partDocument1.Selection selection1.Copy ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Instance Names aus Selection auslesen
MaxZ am 10.06.2005 um 10:58 Uhr (0)
hallo wolfgangist dein "sel" als selection oder als object definiert?versuchs mal mitDim sel As Object
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection und VisProperties
MaxZ am 31.05.2005 um 07:58 Uhr (0)
Vielen Dank! Funktioniert super! Mit dem Array-Ansatz hab ichs auch probiert, hab aber dein "SelElemente" als Selection definiert gehabt und bin auf keinen grünen Zweig gekommen! Also, vielen Dank nochmal Ciao Max
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Umbenennung von Kopierten Flächen
MaxZ am 08.07.2005 um 07:40 Uhr (0)
stimmt, habs .value. vergessen! die version haut hin bei mir: Sub Unterroutine_1_0() Set selection1 = CATIA.ActiveDocument.selection selection1.Search ( name = Querstrebe_1 ,all ) selection1.Copy Set selection2 = CATIA.ActiveDocument.selection selection2.Search ( name = Streben-Trim ,all ) selection1.Paste selection1.Item(1).Value.Name = Strukturraster Set selection3 = CATIA.ActiveDocument.selection selection3.Search ( name = Klebe-Quer_1 ,all ) selection3.Copy Set selection4 = CATIA.ActiveDocument.selec ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Selection und VisProperties
MaxZ am 25.05.2005 um 09:55 Uhr (0)
Hallo zusammen! Ich hab mal eine Frage, vielleicht könnt ihr mir weiterhelfen. Kann ich irgendwie aus einer Selection die Farbe der einzelnen Elemente auslesen? Wie bekomme ich Zugriff auf die einzelnen Elemente? MySelection.VisProperties.GetRealColor r, g, b funktioniert nur insofern, als dass er mir die Farbe irgendeines Elements wiedergibt. Ich bräucht aber quasi die des i. Items (mit i=1 to MySelection.count). Dankeschön schonmal im voraus Ciao Max
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Openbody nach Flächen durchsuchen und gegebenenfalls löschen
MaxZ am 06.07.2005 um 13:14 Uhr (0)
hallo! wenn der openbody einen bestimmten namen oder bestimmt namesbestandteile hat würde ich zuerst den suchen. set selection1 = catia.activedocument.selection selection1.search( name= OpenBodyName ,all) dann würd ich nach den entsprechenden elementen in dem body suchen. die kürzel für flächen oder was auch immer gibt dir der macro- recorder aus. laufen lassen während du normal von hand suchst. anders ist auch noch dass statt all dann sel in den klammern steht. dann such er nur in der aktuellen selec ...
|
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Probleme mit Selection
MaxZ am 03.06.2005 um 14:05 Uhr (0)
Guck dir mal http://ww3.cad.de/foren/ubb/Forum137/HTML/001135.shtml an. da wurd mir auch mit am ähnlichen Problem geholfen! Ciao Max
|
| In das Form CATIA V5 Programmierung wechseln |