Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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. Little Cthulhu

    macros catia solution need

    Not possible to automate generated points with macros other than isolating the whole view.
  2. Little Cthulhu

    Help for Macros that "scanns" the CATdrawing sheet to get Part Number and Drawing sheet no.

    Yes, you have to add sheets to Selection one by one and perform search by color.
  3. Little Cthulhu

    Help for Macros that "scanns" the CATdrawing sheet to get Part Number and Drawing sheet no.

    A common approach to do it with VBA: 1. Enable color inheritance for drawing views 2. Color the part uniquely 3. Update views 4. Use Selection.Search to find generated geometry of the color chosen in step 2. In C++ you do it by retrieving CATIDftGenRequest from view that yields a set of...
  4. Little Cthulhu

    trigger catia

    Exactly, what is the point of introducing save trigger?
  5. Little Cthulhu

    trigger catia

    Not possible with VB. There're no event APIs in CATIA automation. Document can be saved by numerous ways, it's not possible to monitor it reliably.
  6. Little Cthulhu

    CATIA V5 DRAFTING/DRAWING TITLE BLOCK SCALE UPDATE

    How did you make a custom titleblock?
  7. Little Cthulhu

    Graph Tree Reorder in Product/Assembly

    Decompile dlls and examine dictionary files.
  8. Little Cthulhu

    CATIA V5 DRAFTING/DRAWING TITLE BLOCK SCALE UPDATE

    Your titleblock text that displays scale should be linked with `Scale` parameter with attribute link. set sheet = CATIA.ActiveDocument.Sheets.ActiveSheet for each param in CATIA.ActiveDocument.Parameters.SubList(sheet, True) if InStrRev(param.Name, "ViewMakeUp.1\Scale") > 0 then set...
  9. Little Cthulhu

    Graph Tree Reorder in Product/Assembly

    CATIDescendants::ChangePosition works fine with features inside CATPart, but not with products inside CATProduct. There's a specific interface for reordering products, unfortunately it's not a part of CAA client's installation. Another option is to automate reodering via "Reorder Tree" command...
  10. Little Cthulhu

    Macro to search a part in DESK window of Catia

    I'm going to elaborate on what I meant: 1. Write macro that would search for parts in currently opened assembly and copy them them to a temporary assembly. 2. Run that macro, close your original assembly. 3. Activate temporary assembly, run Desk command. 4. Select ALL parts and run CATDUA. 5...
  11. Little Cthulhu

    Macro to search a part in DESK window of Catia

    AFAIR Desk relationship tree is displayed relative from active document. So if you search for part in original assembly, open it in new window and run Desk command from there it should be easy to find this part as it is going to be located in the very left part of relationship tree. Similar...
  12. Little Cthulhu

    Macro to search a part in DESK window of Catia

    Use Utilities to run CATDUA in batch mode. This way you can exactly specify what documents should be processed.
  13. Little Cthulhu

    How to loop through already opened .CATDrawing files in catia v5 using vba

    Use LWolf's solution as it enumerates "opened" documents meaning the ones that have their own window. Although I'd adjusted "if" condition, because right now it matches ANY documents that have word "Drawing" in them (i.e. "AssemblyForDrawing.CATProduct") Sub CATMain() Dim win, doc...
  14. Little Cthulhu

    Copy bodies from selected part bodies in product

    What a mess. Stop using names to identify products and source bodies, they should be placed to ListViewItem.Tag right after SelectElement. Introduce standalone function CopyBodies(sourceParts as List<of Product>, bodyNames as List<of String>, targetParts as List<of Product>) that would For...
  15. Little Cthulhu

    How to differentiate the product and Component object fro assembly product list. On CATIA V5 , using c#.net API

    Hi. Your question is off the topic, you should start a new thread and post your copy-paste code there.
  16. Little Cthulhu

    How to differentiate the product and Component object fro assembly product list. On CATIA V5 , using c#.net API

    Product differs from component by the way it's stored: one has it's own separate CATProduct document, the other one resides within a document that contains it. So what you want to do is to get to that CATProduct and check if it's root object is the one you've started from. Function...
  17. Little Cthulhu

    CATIA V5 Macro Replace drawing links

    DrawingView.GenerativeBehavior.Document - sets "main" link DrawingView.GenerativeLinks.AddLink/RemoveAllLinks - manages links to subcomponents of "main" linked Product
  18. Little Cthulhu

    Adding a Custom Toolbar as an Add-in in CATIA

    I'm afraid I'm not allowed to share our solution. You have to purchase CAA licens (costs A LOT) and then use sample code in CAA Encyclopedia as a reference to develop your own solution (requires middle-level C++ knowledge).
  19. Little Cthulhu

    Adding a Custom Toolbar as an Add-in in CATIA

    We've got customizable CAA toolbars where each button runs catscript or catvba. I consider this to be the best way to go. A "toolbar" displayed by VB.NET is cumbersome to use since it requires extra action to be displayed and struggles in ergonomics when there're plenty of commands. Consider a...
  20. Little Cthulhu

    Export Clashes as GCR

    Sali, would you please answer how do you do it?

Part and Inventory Search

Back
Top