Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Pharys

    Use the function AddNewPointOnSurface

    Sorry guys, I was off until today. Yes lardman363, I only gave you a piece of code because I am not allowed to show the rest of it... In any case, I checked my code and for the CofG, I have been wrong on two things : - I didn't use the SPAWorkbench. - And even if I've done it so, the Inertia...
  2. Pharys

    Use the function AddNewPointOnSurface

    - InputObjectType(0)="PlanarFace" What I tried : I created new directions using AddNewDirectionByCoord; I put random values but it didn't worked. I retrieved the CofG coordinates with the Inertia object but unfortunately it creates a point at (0,0,0)...
  3. Pharys

    Use the function AddNewPointOnSurface

    Hi everyone, I'm trying to create a point in the center of a surface with the use of the AddNewPointOnSurface function. For the moment it doesn't work and I can't find why.. My surface is selected with the SelectElement2 function and this work great (I tried to change its color with...
  4. Pharys

    [Function] Demonstrate that two planes are equal

    For those interested, here is a solution :) !!! Function IsTheSamePlane(oFirstPlane, oSecondPlane) As Boolean '-------------------------------------------------- ' ABSTRACT: ' Check if two planes are identical. ' DEPENDANCIES: ' IsInThePlane...
  5. Pharys

    [Function] Demonstrate that two planes are equal

    Arf, can't find any solution. It seems that whatever I change it will not work. I might made a mistake in my logic. What do you think ?
  6. Pharys

    [Function] Demonstrate that two planes are equal

    sorry for the late answer. It is really frustrating, my angle function doesn't work anymore. @itsmyjob I can't even try to get the distance to (0,0,0)... @jackk I am really new to VBA, I don't really know from where to start to get the planes equations and then compare coefficients... So here...
  7. Pharys

    [Function] Demonstrate that two planes are equal

    I'll try tomorrow at work and tell you what come up
  8. Pharys

    [Function] Demonstrate that two planes are equal

    You mean set the two planes origins to (0,0,0) ? If yes, it will work but my function won't tell me if the two planes are on the same level...
  9. Pharys

    [Function] Demonstrate that two planes are equal

    Hi everyone, I struggle to create a function that allow to determine whether or not two planes are parallel and on the same level. Bellow I managed to get the angle between the two planes and the idea is to return true or false in fonction of the angle between them. However, I don't know how to...
  10. Pharys

    Parameters scan

    I was wrong !!! It wasn't because of the space .... The things I had to do was to go deeper in the tree and now it works ! If anyone need help on it, please contact me :) Byee
  11. Pharys

    Parameters scan

    I found the problem !!! It's because there is a space in my parameter name... As I cannot change it, is it possible to "force" the scan ? Thanks again, Pharys
  12. Pharys

    Parameters scan

    Hi everyone, So I create this : If oBodies.Count > 0 Then Dim m As Integer For m = 1 To oBodies.Count If oBodies.Item(m).Name = sHybridBodyName Then MsgBox "It appears the geometrical set that this macro creates already exists in the part. Unable to proceed."...
  13. Pharys

    Class and library

    I can't open the download link at work, but it lead me on the FAQs ! Thank you :)
  14. Pharys

    Class and library

    You are my savior ! More seriously, it was exactly what I was looking for. Also, I made few searches on this forum and... it is literally a gold mine !!! In two days I made huge progresses :). Thank to all of you Have a nice day itsmyjob, Pharys
  15. Pharys

    Class and library

    Hi everyone, I am currently developing procedures and I would like to know if anyone know a site which give description/examples on CATIA classes and librairies ? As I am new to VBA, it is quite difficult for me to understand every functions... even when I use the Record Macro functionalities ...
Back
Top