Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Recent content by Ruky

  1. Ruky

    Trigonometry Functions (Sine and Tangent) not working in R21?

    Alright, How come Cos works while Sin and Tan don't in catvba? Cos(3 * pi / 180) ' WORKS Sin(3 * pi / 180) 'FAILS
  2. Ruky

    Run Macro Window wont run my custom macro...why?

    Hi, I dont get errors and I follow the proper structuring of macro code....so how come when I try use the macro run window (Catia toolbar: Tools \ Macros \ Macros List Window) and press the run button..the macro does not execute...BUT if I open Catia VBA window and press F5 on the module ..the...
  3. Ruky

    What is the automation object to determine the assembly level of a product object?

    Hi GELFS, The hierarchy of the product within the product tree. Given the Root Product is Level 1, its children are Level 2 and then its grandchildren are Level 3....and so on and so forth. I am trying to find the automation object for giving the hierarchy of the products of an assembly.
  4. Ruky

    What is the automation object to determine the assembly level of a product object?

    I cant seem to find the automation object for acquiring the assembly level number of a product object in a product tree. I figured that if the analyze BOM default tool can output the assembly level number, there should be an automation object available for catvba or catscript. Does anyone know...
  5. Ruky

    How do you get the Document's Instance Number?

    Yes! it works!!!....using .Parent twice is something very foreign to me. I didn't know that was possible. Thanks!
  6. Ruky

    How do you get the Document's Instance Number?

    Hi ferdo, That works! Although I've gotten a bit greedy and tried if I can acquire the parent product of each selected item the macro loops through. I tried doing this: Prnt = selection1.item(i).value.parent.name. It worked well for the first item on the selection. But the next iteration...
  7. Ruky

    How do you get the Document's Instance Number?

    Hi ferdo, That approach works, but if I want to use catvba all the way, is there another way of getting the instance numbers? Thanks for the quick response
  8. Ruky

    How do you get the Document's Instance Number?

    Hi, I have the following code below. My intent is to get all the instance partnumbers from all the documents in my activedocument. I expect that the variable "nam" below will give me XXXXXXX.1 ,XXXXXXX.2, ...,XXXXXX.n but the variable just returns XXXXXXXX.CATPART...
  9. Ruky

    GetTechnologicalObject valid only for Products and not Parts/Partbodies?

    Hi, Problem is I keep getting errors stating that the GetTechnologicalObject does not work when I try to use it on a partbody. But it works when I use it on a product ....I basically want to get the inertia matrix of the Mainbody in a multi-partbody catpart contained in a sub assembly of a...
  10. Ruky

    acquiring the Product Tree level of a part/subassembly using catvba

    How do I get the product tree level of a part/subassembly using catvba instead of the analyze BOM\Listing approach in the interactive catia window?
  11. Ruky

    Run Catvba and Design Databases?

    Hi, Does Catvba only run through the Catia window or can you also run it through a database? I read somewhere in the net that Catia is just a portal to the database that holds the product documents. SO I am curious if you can skip the portal and just run catvba directly in the database itself...
  12. Ruky

    Help needed: GetTechnologicalObject returning "Empty".

    Hi, Im not getting errors with getting the technological object for the catpart. But it's returning nothing about the part I want to analyze inertia on (and yes the part has a body called "PartBody"). Am I using the gettechnologicalobject method on the wrong document? Please let me know if...
  13. Ruky

    How do you create a txt file through catvba and not catscript or vbscript?

    Hi I tried the help feature of catia vba but the procedure it gives is for scripting. So I cant get past the error saying the automation object does not exist. Is there another way for creating a text file through catvba instead of script? Also I still want to learn how to script, so in...
  14. Ruky

    Problem: Output speed decreases as I loop through a HUGE assembly

    Hi, My Catvba works fine when it outputs data about a HUGE catia assembly. It's just that the speed slows down incrementaly as the output file lines increase beyond around 800 to 1000 lines. My output file is Excel-- the output operation occurs for each loop in a given sub assembly. Does...

Part and Inventory Search