Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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: *

  1. CheeseMaker13

    Determine DoF for parts in a product or count fixes in a component node

    Hi Guys, Is there a way of checking that each part in a component node is fixed? Currently I count all the fixes in the root of the document: oSelection.Search "CATAsmSearch.MfFixConstraint.Name=Fix'.'*,oDocument" then count ALL the fixes: oSelection.Search "CATAsmSearch.MfFixConstraint,all"...
  2. CheeseMaker13

    Fix problem with occasional broken links?

    Hi Guys, I keep coming up against a problem whereby when I send a product with the associated parts to another user, that on occasion the data will exhibit broken links even though the part file is there and loads absolutely fine on my machine (with a cleared cache or not). Is the...
  3. CheeseMaker13

    What am I doing wrong here!?! (Renaming instances)

    HI Guys, Pulling my hair out here, because whatever I do I cannot get instances within a component to rename. Essentially I have a product with a component at the end of the tree with loads more parts inserted in there. This code drills down to it and then renames them sequentially: Sub...
  4. CheeseMaker13

    Search for an Instance name in a product

    Hi Guys, Another little problem I can't for the life of me figure out. I want to search for a specific Instance of something, for example "Apple.2". I have a SearchString Var with "Apple.2" in it. How do I then search for that in a product? I've tried: oSelection.Search...
  5. CheeseMaker13

    Ending a 'StartCommand' command

    Hi Guys, I'm currently writing a script to extract Inertial Data from a product of numerous parts. The problem I'm coming up against is that I need to run CATIA.StartCommand ("Measure Inertia") and once I've got all the data from the Parameters fields (E.g. "Gx =...
  6. CheeseMaker13

    Setting Viewer Background Color results in error

    Hi Guys, I have the following code: Dim objViewer3D As Viewer3D Dim objCamera3D As Camera3D Set MainDocument = CATIA.ActiveDocument Set objCamera3D = MainDocument.Cameras.Item(1) objViewer3D.Viewpoint3D = objCamera3D.Viewpoint3D Dim DBLBackArray(2) objViewer3D.GetBackgroundColor...
  7. CheeseMaker13

    Checking if a StrParam exists?

    Hi Guys, Another one I can't work out! :( I have the 'address' (For Example: Part\Geometrical Set\Sub Geo Set\Name) for a parameter, for which then I get the value from using: Parameters.Item("Part\Geometrical Set\Sub Geo Set\Name").Value Now sometimes not all the parameters exist, so the...
  8. CheeseMaker13

    Getting CofG of parts using different origin via VBA

    Right basically I currently have a set of parts that are modeled using a 'local' axis. However, I need to use another point/origin (actually another axis) to actually calculate the CofG. Manually I click on the Inertia tool, create a point using the calculated CofG location using 'Create...
  9. CheeseMaker13

    Count Geometric Sets in Part Tree Root

    So the tree is: Part - xy plane - yz plane - zx plane - Axis Systems - PartBody - Geo Set 1 - Geo Set 2 - Geo Set N Basically, all I want is a count of how many geometrical sets there are (they are all named differently). Tried to use code from here...
  10. CheeseMaker13

    Activate Terminal Node over entire CATProduct

    I need to be able to apply "Activate Terminal Node" over an entire product, but currently I can't work out to get everything (including those parts buried two levels deep in 'components' to load. I've tried to do it via each first level product, which works apart from no parts in components...
  11. CheeseMaker13

    Export Clashes to txt file for import to excel speadsheet

    Hi, I'd like to compile a macro that does the following things: 1. Imports a selection of assembly file names from an excel spreadsheet. 2. Runs clash detection on each of the files listed in the spreadsheet. 3A. Exports the clash list to a txt file for import into the same excel speadsheet OR...
  12. CheeseMaker13

    Edit an existing Title Block using VBA Macro

    Hi, First post!! I've been tasked to automatically create drawings based on an excel spreadsheet with all the required data. I've managed to get a script to open a new drawing, add the required text and save it using the correct naming scheme. The problem I'm up against is that some of the...

Part and Inventory Search