Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  • Users: mayrou
  • Content: Threads
  • Order by date
  1. mayrou

    Drawing View

    Hello, i want to create a macro that change the size of character coasts and arrows of quotation in a Drawing view. i don't know how to start my essay!! :/ Thank you.
  2. mayrou

    Selected Hole Center

    Hi! I developed a macro that select a hole! then make a point center of that hole!! Dim productDocument1 As Document Set productDocument1 = CATIA.ActiveDocument Dim product1 As Product Set product1 = productDocument1.Product Dim selection1 Set selection1 = productDocument1.Selection Dim...
  3. mayrou

    Create hybridShapePointCenter

    Hi!!! I'm having some trouble getting update to work the way I'm expecting it to. Dim productDocument1 As Document Set productDocument1 = CATIA.ActiveDocument Dim product1 As Product Set product1 = productDocument1.Product Dim partDocument1 As Document Set partDocument1 =...
  4. mayrou

    Coordinates in a second axis system

    hello! I want to create a macro that gets the coordinates of a point (cercle origin), belonging in a part1, in the axis system of a second part (part2)! TH U
  5. mayrou

    problem with reference

    Bonjour!! [ponytails2] I have a problem with reference of selection!! MsgBox "select a hole" Dim InputObjectType(0), Status1 InputObjectType(0)="Hole" Status1=selection1.SelectElement2(InputObjectType,"Select a hole",false) If Status1 = "Cancel" Then selection1.Clear: Exit Sub Dim...
  6. mayrou

    origin

    hello everybody! I tried to create a macro that give me the origin of a selected cercle! MsgBox "selectionnez un trou" Dim InputObjectType(0), Status1 InputObjectType(0)="Hole" Status1=selection1.SelectElement2(InputObjectType,"Select un trou",false) If Status1 = "Cancel" Then...
  7. mayrou

    select a hole

    hi! i want to create a macro that select a hole in a product i developed this macro MsgBox "selectionnez un trou" Dim InputObjectType(0), Status1 InputObjectType(0)="Hole" Status1=selection1.SelectElement2(InputObjectType,"Select un trou",false) If Status1 = "Cancel" Then selection1.Clear...
  8. mayrou

    distance

    Hello world i have an issue, hope you can help me with this in a CATIAProduct, i want to create a macro that gets the minimal distance between a point and a part! How can I do that! thx you
  9. mayrou

    PastSpecial

    Hi everybody I want to copy a shape (a point, a line...) from one part to another, with a PastSpecial as a result! is it possible? I tried to do somethin like that! but i failed Dim productDocument1 As Document Set productDocument1 = CATIA.ActiveDocument Dim selection1 As Selection Set...
  10. mayrou

    a list in an inputbox

    Hello world! I would like to create a list of choices, in an inputbox. I made an inputbox but i would limit the entered value to certain input! thx
  11. mayrou

    copy a point

    hi! I want to create a macro that copy a point named "pt1" from an hybridbody1 to another hybridbody2 when i record a macro of this action: Sub CATMain() Dim productDocument1 As Document Set productDocument1 = CATIA.ActiveDocument Dim documents1 As Documents Set documents1 =...
  12. mayrou

    date

    HELLO WORLD! I'm trying to create a macro that generates "Date created" of a catia product! as shown in the attached picture, thank you :)
  13. mayrou

    angle between two planes

    Hello! I want to create a macro in product CATIA that mesure an angle between two planes angle = ((yz) part1 , (yz) part2) thx a lot :)
  14. mayrou

    point coordinates

    Hello world!! I want to create a macro that extract a point coordinates in a CATpart, so i used the "GetCoordiantes" command subsequently, I want to modify its coordinates! and i doubt if i use "SetCoordiantes" or not! and how can i use this command! thx a lot :)
  15. mayrou

    isometric view

    Hello World! I want to develop in macro that create an isometric view in a CATDrawing from a product! help please! regards
  16. mayrou

    3D points

    Hello World! I want to activate 3D points in my drawing views using a macro in CATIA I would greatly appreciate any help or any suggestions Regards,
  17. mayrou

    Create a Drawing

    Hello world! I need to create a CATIA macro that create a drawing from a product automatically! I already began this macro and i created the front view Dim documents1 As Documents Set documents1 = CATIA.Documents Dim drawingDocument1 As Document Set drawingDocument1 = documents1.Add("Drawing")...
  18. mayrou

    msgbox

    Hello world! I want to create a msgbox that contains yes or no buttons MsgBox "yes or no?" , vbYesNo + vbQuestion, "Vérification") but the problem is how to get the answer! ie if the user select "yes" then continue if "no" an other msgbox to enter the right answer is displayed thx a lot :)
  19. mayrou

    create user property

    Hello World! I want to create a user property that gets the creation date of the product! from the system Dim parameters3 As Parameters Set parameters3 = product1.UserRefProperties Dim strParam3 As StrParam Set strParam3 = parameters1.CreateString("Date creation", "") Can anyone please help...
  20. mayrou

    extract a string

    Hello world! I want to extract a string from an other for example dossier1\dossier2...\123-Mayrou\forum for that I used SPLIT to extract "mayrou" mayrou =Right(Split(productDocument1.Path,"\")(2),4) Anybody please correct it. Thanks in advance :)

Part and Inventory Search