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 MintJulep 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 tesak

  1. tesak

    How can we use reference in loop, t

    It is better to post whole code as it is not clear how your oCurve object is defined. I am also not sure, why you need to measure the same object oCurve 3 times. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  2. tesak

    CATIA Selection

    It is not very efficient solution. You should read the whole structure in advance, store it, make your table and just then add/remove items from selection on checkbox click. On fly searching will be really slow for big assemblies and if you perform it on every checkbox click, user experience is...
  3. tesak

    CATIA Selection

    But what is the logic behind? You add into selection exactly the same items which are already there ... Why? An exercise? Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  4. tesak

    CATIA Selection

    I am not really sure why do you need to add to selection. If you find products you need, you can get them from selection and store them in a collection or dictionary. Later, you can use them as you wish. I do not see a logic in a code from above. You search selection to get desired items, then...
  5. tesak

    CATIA Selection

    Your requirements now differs completely? It is really not clear what you are after. Anyway, share the complete code, if you expect to identify error. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  6. tesak

    CATIA Selection

    You stated at the top, that you select items manually. Why is there a code to add items into selection? Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  7. tesak

    Macro to rename instances

    Hi, In vb scripts it is not allowed to use variable types declaration as all variables are variants. I think you have to launch this macro in VBA, or maybe try to save it as .catscript where "As" clauses are just being ignored. Other option is to uncomment or delete all "As" statements in your...
  8. tesak

    CATIA VBA : range.Find exact value from CATIA

    According to Excel reference Const xlWhole = 1, so you make better if you replace True with number 1. If you work from CATIA VBA and you didn't link Excel libraries, then xlWhole constant is unknown which could cause your issues. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/...
  9. tesak

    CATIA VBA : range.Find exact value from CATIA

    Is this code from Catia or Excel? Did you link the right libraries? Because although it might work I am not sure that this is the right way. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  10. tesak

    Drawing Balloons

    Every text (DrawingText) has a Leaders property. This is a DrawingLeaders collection you look for. myText.Leaders.Remove(1) Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  11. tesak

    List of Every Product and Part

    This is pretty easy task, you can use recursion. Please, take some inspiration from here: https://scripts4all.eu/export-a-product-structure-to-excel-in-vba/ To count the total amount of unique parts & products, you can use a dictionary. Tesak...
  12. tesak

    How to Reorder Specification Tree Using Macro VBA

    There is, unfortunately, no way to do it directly in CATIA VBA. However, for easier tree reordering you can use external applications. See a link to one of them below: https://scripts4all.eu/smartsort/ Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5...
  13. tesak

    Working in a CATPart in a CATProduct VBA

    Hi, find the product (part) in the tree you would like to work with and call ReferenceProduct.Parent to get the part document. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  14. tesak

    Delete scale in view name label through macro

    Please share your code. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing
  15. tesak

    Delete scale in view name label through macro

    Yes, it is just the text, you can delete it without breaking the view link. Tesak https://scripts4all.eu/play-tetris-in-catia-v5-drawing-vba/ - Play Tetris in CATIA V5 drawing

Part and Inventory Search

Back
Top