Autor
|
Thema: Funktionsumfang CATVBA (1155 mal gelesen)
|
wulfgang Mitglied
Beiträge: 64 Registriert: 29.04.2007 CATIA V5 R18
|
erstellt am: 31. Mrz. 2010 13:19 <-- editieren / zitieren --> Unities abgeben:
Hallo, ich wollte fragen ob in der V5Automation.chm Funktionen aufgeführt sind, die ich in cATVBA nicht verwenden kann. Ich wollte folgende Funktion verwenden: Code: Dim TransformationArray(11) 'Rotation( 45 degrees around the x axis) components TransformationArray(0) = 1# TransformationArray(1) = 0 TransformationArray(2) = 0 TransformationArray(3) = 0 TransformationArray(4) = 0.707 TransformationArray(5) = 0.707 TransformationArray(6) = 0 TransformationArray(7) = -0.707 TransformationArray(8) = 0.707 'Translation Vector (10,20,30) TransformationArray(9) = 10# TransformationArray(10) = 20# TransformationArray(11) = 30# EngineMoveObject.Apply TransformationArray
Dazu erhalte ich als Fehlermeldung: Zitat: Compile error: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic.
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
DanielFr. Moderator Manager
Beiträge: 2506 Registriert: 10.08.2005 HP Compaq 8710w, Intel Core Duo T7700, 2,40 Ghz, 3GB RAM, Windows XP Professionel @32bit, Quadro FX 1600M, CATIA V5 R19 SP3
|
erstellt am: 31. Mrz. 2010 14:41 <-- editieren / zitieren --> Unities abgeben: Nur für wulfgang
|
wulfgang Mitglied
Beiträge: 64 Registriert: 29.04.2007 CATIA V5 R18
|
erstellt am: 03. Apr. 2010 12:34 <-- editieren / zitieren --> Unities abgeben:
|
DanielFr. Moderator Manager
Beiträge: 2506 Registriert: 10.08.2005 HP Compaq 8710w, Intel Core Duo T7700, 2,40 Ghz, 3GB RAM, Windows XP Professionel @32bit, Quadro FX 1600M, CATIA V5 R19 SP3
|
erstellt am: 03. Apr. 2010 18:53 <-- editieren / zitieren --> Unities abgeben: Nur für wulfgang
Hallo , ähm wo genau steht das du es in einem CATvba nicht verwenden kannst? Habe gerade mal geschaut und nichts dergleichen gefunden [EDIT] Hier nochmal der Code den ich zum Testen verwendet habe. Der Code bewegt das erste Produkt (Part) im Root-Produkt um die angegebenen Werte: Code:
Sub CATMain() Dim intDocObj As ProductDocument Dim intProdObj As Product Dim intMoveObj As Object 'Move Dim intTransArray(11) Set intDocObj = CATIA.ActiveDocument Set intProdObj = intDocObj.Product.Products.Item(1) Set intMoveObj = intProdObj.Move 'Rotation( 45 degrees around the x axis) components intTransArray(0) = 1# intTransArray(1) = 0 intTransArray(2) = 0 intTransArray(3) = 0 intTransArray(4) = 0.707 intTransArray(5) = 0.707 intTransArray(6) = 0 intTransArray(7) = -0.707 intTransArray(8) = 0.707 'Translation Vector (10,20,30) intTransArray(9) = 10# intTransArray(10) = 20# intTransArray(11) = 30# intMoveObj.Apply intTransArray
End Sub
[/EDIT]------------------ MFG Daniel Systeminformation | Inoffizielle CATIA Hilfeseite | CATIA FAQ | Suche | TraceParts (Normteile...) | 3D Content Central (noch mehr Normteile...) Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP |
| Anzeige.:
Anzeige: (Infos zum Werbeplatz >>)
|