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 shasbarg

  1. shasbarg

    NX5: Can you display all external references?

    Err maybe I should pay more attention to the original post. What I listed will give you what the part in question references not what refers to the part. S
  2. shasbarg

    NX5: Can you display all external references?

    You can use ug_edit_part_names with the -list option to display all external references in a part. This includes assembly information, WAVE data and IPE. S
  3. shasbarg

    how to add item No. in BOM

    Unfortunately I am not able to release what has been written. I can though give a brief description of how it works. We load all of the existing numbers from the first level parts into a dictionary (key = part-number, value = item-number), check to see it has been previously numbered and ask to...
  4. shasbarg

    how to add item No. in BOM

    That is pretty much impossible we have the same problem we do not want the parts of a subassembly numbered we want that subassembly as a whole numbered. Stated another way we want the first level children of an assembly numbered and nothing else. In the model we have given up on CATIA's default...
  5. shasbarg

    Analyze vs. GetTechnologicalObject("Inertia")

    I've been trying to calculate the mass and center of gravity for assemblies and I’ve been running into a problem with different output from oProduct.Analyze vs. oProduct.GetTechnologicalObject("Inertia"). Both have a .mass and a method of obtaining the COG but the values are not always equal. In...
  6. shasbarg

    I NEED HELP !!! PLEASE

    Unfortunately everyone’s says PSN briefly before displaying the visualization for an assembly and it might well for a part but the windows flashes by to fast for me to tell. What version of CATIA are you running, V and SP. Do you get an error message if so what does it say? It’s hard to...
  7. shasbarg

    Programmatically change the color of a part?

    I forgot to mention a few things in using VBA you first need to add the reference to the Microsoft Scripting Runtime to be able to create a Dictionary. Then the declaration is rather simple; Dim PARTS As Dictionary Set PARTS = New Dictionary The nice thing about a Dictionary is the...
  8. shasbarg

    Programmatically change the color of a part?

    Sorry I must have missed that part, so you are looking at recusivly parsing the entire assembly tree, not just the first level children but all levels. Sometimes it may also be productive to use a Dictionary instead of an array this would allow you to search without the need to loop through each...
  9. shasbarg

    Programmatically change the color of a part?

    One comment on the "For Each" statement. You don't need to use the i=1 and i=1+1 before and following the loop. all you need to do is use the "Product" declared in the "for Each" statement. selection1.Clear For PARTSval = LBound(PARTS) To UBound(PARTS) For Each Product In products1 If...
  10. shasbarg

    Programmatically change the color of a part?

    Here is the code to select a product object; Dim oSelection As Selection Set oSelection = CATIA.ActiveDocument.Selection oSelection.Clear oSelection.Add oRoot_Product If you don't first clear the current selection it adds to the current selection, i.e. if you had one part selected in an...
  11. shasbarg

    GetTechnologicalObject on NC Resources Product

    I was wondering if you found the list of parameters for the GetTechnologicalObject? I need it for access a different property but have'nt had a whole lot of luck. Thanks, Shawn

Part and Inventory Search