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!

Search results for query: *

  • Users: Ruky
  • Content: Threads
  • Order by date
  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?

    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...
  4. 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...
  5. 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...
  6. 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?
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. Ruky

    How can I open EXCEL 2010 from catia vba?

    I know CreateObject("EXCEL.Application") works well with excel 2003. But I want to open excel 2010 instead of 2003 (I have both in my machine). Tried CreateObject("EXCEL2010.Application") and CreateObject("2010EXCEL.Application")---both did not work.
  12. Ruky

    GetCOGPosition not working

    Hi, I dont get this. A pop up error is preventing my code from running. When I debug it points to the line where I use GetCOGPosition for an inertia object I declared and used GetTechnologicalObject on. The Error message goes like this: Function or interface marked as restricted, or the...
  13. Ruky

    How do you loop through a multi-level assembly using catvba

    Hi, I am trying to formulate a loop in catvba to basically count the children of each branch of a loaded specification tree. I know Root is level 0....and the level converges to n as the branches also have smaller branches. I want to count the children in all specification tree branches (to...
  14. Ruky

    Catia V5 Analyze BOM Listing Report

    Hi, Is there a way to create a new parameter to use in the Analyze BOM listing Report's default list of parameters? Like for example, I would like to include the volume of the individual parts into the listing report. Do I need a vba macro for this? Thanks,

Part and Inventory Search