Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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. tomtom12

    Inert existing component from external app

    So I found a way to do this - basically, script is searching for the component name in the active document and listing number of instances into collection, then finding last item number from this collection and use it to search again using part number + instance ID. Here's the code that took me...
  2. tomtom12

    Inert existing component from external app

    There's always a way..
  3. tomtom12

    Preview CATpart & CATproduct in external VB NET form

    'get' as in 'read from file' I suppose When in Catia opening the part, you get little preview on the side, that's what I would like to replicate in my own VB form.
  4. tomtom12

    Preview CATpart & CATproduct in external VB NET form

    I am either missing some documentation or this does not exist - how can I get Catia file preview? In ideal case it would be 3D preview but thumbnail would be also great. I searched for hours today and haven't found a single script example. Is it really so difficult or am I having bad Friday?
  5. tomtom12

    Inert existing component from external app

    My understanding is that Product.Position.SetComponents would specify specific position while in ideal case I would like to call up Smart Move function for the added component. I have managed to use script to add parts into Root but now stuck of how to apply function for last inserted item. Any...
  6. tomtom12

    Inert existing component from external app

    I managed to get the scrip to work, but failing to find any API for the function 'Insert Existing Component with positioning' - is this even possible with external script?
  7. tomtom12

    Inert existing component from external app

    So I found following code: Sub LoadDocumentToProduct() Dim Document As ProductDocument Set Document = CATIA.ActiveDocument Dim MainProduct As Product Set MainProduct = Document.Product Set Prod = MainProduct.Products Dim arrayOfVariantOfBSTR( 0) ' Quantity loaded documents-1...
  8. tomtom12

    Inert existing component from external app

    Thanks for your reply. Could you expand a little more where this is described? Is it the Catia's internal scripting interface documentation? Ideally I am after some samples such functionality can be achieved.
  9. tomtom12

    Inert existing component from external app

    Hello, I have so far developed small application with VB NET in VisualStudio which allows browsing parts and their details from SQL database. This also contains links to files, including CATpart. Naturally I came to this idea that it would be nice o have a button that would send the CATpart...

Part and Inventory Search