|
CATIA V5 Programmierung : .Net-dlls für CATIA V5
makebeth am 23.03.2009 um 06:49 Uhr (0)
Zitat:Original erstellt von Jens Hansen:ich habe mal was mit vb2005 rumgespielt und es scheint so zu sein, bei deinem Beispiel .Product nur dann auftaucht, wenn due Deklaration in der richtigen Klasse - also "Dim product As ProductStructureTypeLib.Product" gemacht wurde.Im Intellisense taucht am Objekt die Eigenschaft .Product leider nicht auf.hallo zusammen,das intellisense für document keine eigenschaft namens product anzeigt liegt daran, dass es diese nicht hat. wenn das dokument als productdocument de ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Parameter im Parameter
makebeth am 23.03.2009 um 20:17 Uhr (0)
hallo manrok,das thema ist hier unter programmierung etwas fehl am platz.aber nichts für ungut, du scheinst ein anfänger mit catia zu sein. das erstellen von parametersets machst du mit kwa (knowledge advisor).
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Parts und Products in Struktur Fixen VB.Net (catCstTypeReference)
makebeth am 23.03.2009 um 21:08 Uhr (0)
hallo zusammen,ich habe in vb.net eine anwendung geschrieben, die es ermöglicht über eine treeview standardstrukturen zu erstellen, zu bearbeiten und zu speichern. das übertragen in catia ist kein problem. was mir kopfschmerzen bereitet ist das fixen der parts und produkte.Code:CATIA V5 GSMInterfaces Object LibraryCATIA V5 InfInterfaces Object LibraryCATIA V5 ProductStructureInterfaces Object LibraryCATIA V5 MecModInterface Object LibraryCATIA V5 KnowledgeInterfaces Object Libraryals Referenz eingebundenSu ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Parts und Products in Struktur Fixen VB.Net (catCstTypeReference)
makebeth am 24.03.2009 um 19:20 Uhr (0)
Hier der Aktuelle Code:Code:Sub Run(rootNode As TreeNode, rootProd as Product) Dim subNode As TreeNode Dim subProd As Product Dim subPRef As INFITF.Reference Dim rootCol As MECMOD.Constraints Dim rootCon As MECMOD.Constraint Dim subType As String For Each subNode In rootNode.Nodes If subNode.ImageIndex = 0 Then subType = "Product" Else If subNode.ImageIndex = 1 Then subType = "Part" Else subType = "Component" End If subProd = rootProd.Products.AddNewComponent(subType, subNode.Text) Dim oInstNam ...
|
In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : Parts und Products in Struktur Fixen VB.Net (catCstTypeReference)
makebeth am 25.03.2009 um 18:24 Uhr (0)
Nach einer weile bin ich nun sebst drauf gekommen.Mit CATIA.Documents.Read läufts ohne Probleme.Code:Dim path As Stringpath = rootProd.PartNumber + "/" + subProd.Name + "/!" + rootProd.PartNumber + "/" + subProd.Name + "/"subPRef = rootProd.CreateReferenceFromName(path)rootCol = rootProd.Connections("CATIAConstraints")Try rootCon = rootCol.AddMonoEltCst(CatConstraintType.catCstTypeReference, subPRef)Catch Dim docNewWin As ProductDocument = CATIA.Documents.Read(rootProd.PartNumber + ".CATProduct") rootProd ...
|
In das Form CATIA V5 Programmierung wechseln |