 |
CATIA V5 Programmierung : Reactivate Produkt im StrukturBaum
Sylas am 04.03.2021 um 09:36 Uhr (15)
Hallo Freunde!Ich versuche jetzt ein Makro schreiben, mit welschem Ich wurde selektierte Products aktivieren/deaktiviren konnen.Code:Sub CATMain()Dim oProduct As ProductDim sSel As SelectionSet sSel = CATIA.ActiveDocument.SelectionSet oSel = sSelDim sArray(0) As VariantsArray(0) = "Product"Dim prodName As StringDim oParam As ParameterDim oRootProd As ProductDim sProdName As StringSet oRootProd = CATIA.ActiveDocument.ProductoSel.ClearDim sStatussStatus = oSel.SelectElement3(sArray, "Wybierz party, ktore chc ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : AddNewAssemble nur ein Mal funktioniert
Sylas am 31.12.2021 um 01:18 Uhr (1)
Hallo zusammen!Ich probiere gerade ein Makro schreiben welches neues Body einfugst und eventuell neue Assembly macht.Es schein mir das AddNewAssembly Methode funct nur ein (erstes) Mal.Guck mal an die Code unter bitte, und sag mir was habe ich Falsch gemacht Code:Sub CATMain()Dim oSelDim oBodyToAssemble As BodyDim oPartBody As BodyDim oFilter(0) As VariantDim oDummySel As SelectionSet oDummySel = CATIA.ActiveDocument.SelectionSet oSel = oDummySelDim part1 As PartoFilter(0) = "Part"Status = oSel.SelectElem ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : It's a match! xD zwischen zwei Parts-Liste finden und Publikationen kopieren
Sylas am 09.06.2022 um 10:31 Uhr (1)
Hallo Bernd Code:Sub CATMain()Dim oHP As ProductDim oSel As SelectionSet oHP = CATIA.ActiveDocument.ProductDim oSourceProd As ProductDim oTargetProd As ProductDim InputObjectType(0) As VariantInputObjectType(0) = "Product"Set oSel = CATIA.ActiveDocument.SelectionDim Source As PartDim Target As PartDim oDSelSet oDSel = oSeloDSel.ClearResult = oDSel.SelectElement2(InputObjectType(), "Wybierz zrodlowy komponent", True)Set oSourceProd = oSel.Item(1).ValueoDSel.ClearResult = oDSel.SelectElement2(InputObjectType ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : It's a match! xD zwischen zwei Parts-Liste finden und Publikationen kopieren
Sylas am 09.06.2022 um 10:59 Uhr (1)
Hallo ZusammenWenn ich nur Korper aus Source nimme, Ich kriege die Meldung in Catia: "Error Copying Data: Selected element(s) not allowed for this operation".Und die Selektion is immer 0 (immer genau =1)Gruß
|
In das Form CATIA V5 Programmierung wechseln |
 |
CATIA V5 Programmierung : It's a match! xD zwischen zwei Parts-Liste finden und Publikationen kopieren
Sylas am 09.06.2022 um 13:37 Uhr (15)
Das wahr erlich kommisch. Wenn ich die CATIA neu gestartet hatte - es lauft xDDanke for deine Hilfe
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Copy / Paste special ohne Link - wieder ;)
Sylas am 12.06.2022 um 21:47 Uhr (1)
Zitat:Original erstellt von tomtom1972:Moin Sylas,in dem Beitrag, den Bernd verlinkt hat, habe ich das fertige Scripte gepostet, was du suchst.Wo ist also das Problem?Funktioniert es bei dir nicht?Gruß tomtomHallo tomtom!Noch wieder zurück zu dem Thema Wurde das möglich der Code so andern, dass die Body ist auch mit die Farbe kopiert werden? Jetzt Catia fügst die Bodies mit standard Farben Ich weiß ich soll das mit Selektion und visproperties schaffen, aber ich weiß nicht wo soll ich das in deinem Code hin ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Array duplicates removal
Sylas am 18.08.2022 um 15:49 Uhr (1)
Hi BerndAs a result, under the "allcatpart" I want to have same assembled bodies structure, as Source product structure is:SOURCE STRUCTURE:MainProduct Product 1 part1 part2 part3 Product 2 part1 part2 part3TARGET STRUCTURE (UNDER "ALLCATPART" PART): Body1.Name=Product 1.PartNumber & " - " & Product 1.DescriptionRef assemble1.name=part1.partnumber body1.name=part1.partnumber as ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Array duplicates removal
Sylas am 18.08.2022 um 17:12 Uhr (1)
Zitat:Original erstellt von bgrittmann:HiHow do you create the allcatpart? Does your script copy the bodies and create the boolean operation, or do you use a build in function?What shall happen if two identical subproducts are present? Shall these bodies assembled in a common body?regardsBerndallcatpart is already existing part in catia tree structure which I choose by selectelement3 earlier.Script is copying bodies and paste in without link, assembling bodies tooif the product1 occurs second time, same se ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Sketch Elemente zu Construction setzen
Sylas am 04.08.2023 um 17:44 Uhr (1)
Halo Zusammen!Ich versuche gerade ein kleines Macro schreiben, welches Benutzer-selektierte Elemente von dem / zu dem Construction Elemente (bzw. Geometrical Elemente) unter Skizze dort oder zuruck setzt:Code:Sub CATMain()Dim odSel As SelectionDim oSelDim InputObjectType(0) As VariantDim oElement As Geometry2DSet odSel = CATIA.ActiveDocument.SelectionSet oSel = odSelInputObjectType(0) = "AnyObject"Result = oSel.SelectElement3(InputObjectType, "Choose geometry", True, CATMultiSelTriggWhenUserValidatesSelect ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Special Paste Special
Sylas am 14.09.2023 um 09:01 Uhr (1)
Zitat:Original erstellt von ptit.tom:es geht, wenn die InternalName angewendet werden, um den Pfad sRefString zu bauen:Code:Dim MyInternalName As StringMyInternalName = MyObject.GetItem(„ModelElement“).InternalNameDamit sind die Namen von Bodies eindeutig. CATIA kommt damit normalerweise zu recht um später eine Referenz mit CreateReferenceFromName zu machenHelloVielleicht mache ich etwas falsch, aber auf Ihre Weise erhalte ich in den meisten Fällen für denselben Körpernamen, zum Beispiel MANIFOLD_SOLID_BRE ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Datentransfer : CATIA 3d model -> 3D PDF
Sylas am 11.06.2025 um 10:37 Uhr (1)
Hello CommunityIs there a way to export / save as CATIA 3D model as 3DPDF without 3rd party application or add-on?Best regardsLucas
|
In das Form CATIA V5 Datentransfer wechseln |