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. AtomicNico

    COG in meter and other coordinates in mm

    Hello everybody, I'm using a macro to extract some characteristics of my parts, especially coordinates. But I don't understand why the coordinates of the Center of Gravity are in meter in my Excel file while the other are in millimeters. I built my code in the same way for the different...
  2. AtomicNico

    3d experience

    Hello, humm... WHAT is more expensive than V5 to you? If you choose Solidworks, it will be less expensive than Catia, that's for sure
  3. AtomicNico

    Querying for a List of Electrical Objects

    Hello MahPLM, Just to be sure: you're writing this macro inside CATIA or outside on Visual Studio or VBA? selection1.Search("ElectricalObject") Are you sure "ElectricalObject" is the real name given by Dassault? Moreover, I think you should add ,all to be sure you select everything...
  4. AtomicNico

    Querying for a List of Electrical Objects

    Hello, What do you use to access those objects? Can you post your code plz?
  5. AtomicNico

    Any Help Deeply appreciated

    Hello! Why don't you use the search function? Sub CATMain() set Sel = CATIA.ActiveDocument.Selection Sel.Search "Name=BS,all" End Sub That way you may find the part with BS in it
  6. AtomicNico

    StiEngine

    Hello, for the document loaded you may use this as inspiration: Err.Clear On Error Resume Next '//---------- Get the active document Set objGCATIADocument0 = CATIA.ActiveDocument If Err.Number <> 0 Then MsgBox "You must have a loaded and active document in the session", _...
  7. AtomicNico

    Import Catia files in RTCe

    If I recall correctly, Teamcenter is a Siemens Product and works with NX unless you buy the bridge software between Catia and Teamcenter So if you don't buy the bridge software, you can't do that
  8. AtomicNico

    Views on assembly

    I think I did as you said but it doesn't seem to work and I don't know why... document = CATIA.ActiveDocument selection = document.Selection selection.Search "(CATLndSearch.Product),all" ===> selection of all the products of my assembly NbParts = selection.Count For i = 1 To NbParts set sel =...
  9. AtomicNico

    Extract special coordinates

    Hey guys, likely the last time I'm asking you something but I need a little help again Here is my loop to select the edges, that works alone Sub CATMain() Dim intNbEdges As Integer Dim doc, sel, spa, ref, measurable Dim inputObjectType(0) Dim i As Integer Set doc =...
  10. AtomicNico

    CNEXT - CATscript error messages - scripting ERR_1002

    You're saying the error is on line 2035 but you don't give us your code, that's what itsmyjob is saying
  11. AtomicNico

    Views on assembly

    So the way of doing that would be: Make a big selection => put it into a collection => make a new selection inside that collection => select the object i and reframe on Is that so?
  12. AtomicNico

    Extract special coordinates

    Ok, I found how to do it: - Selection of all the edges with sel.Search "Topology.CGMEdge,all" - Selection of only the TriDimFeatEdge
  13. AtomicNico

    Views on assembly

    Hi guys! That's me again but I need your help again for the last time I think! I'm still on my piping circuit and I got a new question to ask you: I make a selection of all my parts but on each part I need to make a little selection so inside my loop I put a CATIA.StartCommand("Reframe On")...
  14. AtomicNico

    Extract special coordinates

    I tried a new way to do it but it failed, maybe you can tell me where is the error. I tried "sel.Search("Type=TriDimFeatEdge, all")" but Method Search failed. So I wanted to add TriDimFeatEdge as a new support of search. In automation it says that Add method will take an AnyObject, but when I...
  15. AtomicNico

    Extract special coordinates

    I'm still stuck on my problem of edges so I have to ask again, but in a better way: Does anyone knows what are the items selected by the tools palette when you make Status = sel.SelectElement3(inputObjectType, "Select the edge", True, CATMultiSelTriggWhenUserValidatesSelection, False)? Because I...
  16. AtomicNico

    Extract special coordinates

    Yes! It works! Thanks Eric! For the selection, do you have an idea about why the edges are not selected by the Tools Palette? I can't find anything about it on internet. Also, I tried to automatize it, making a selection by the edges, but the command I tried (sel.Search...
  17. AtomicNico

    Extract special coordinates

    But when I select all the edges of my part one at a time, there won't be any problem, and on this part I'm sure all I have are circular edges (start and end of a pipe). If I put a "on error goto 0", I will have to make a new selection, right?
  18. AtomicNico

    Unit two Surfaces

    Hello, No picture because no attachment Nico
  19. AtomicNico

    Extract special coordinates

    Yes, the inputObjectType(0) = "TriDimFeatEdge" only allows me to select circular edges, I tried it on several models. I presume the error is in the loop but where is the question... Do I need to reinitialize one of the variables? Like coordinates?
  20. AtomicNico

    Extract special coordinates

    I got a little problem with my loop: on multiple selections, I only got the 1st element selected which gives me the results but after I got an error "Coordinates: type non compatible", so either I've got a problem in my loop or the selection method is wrong. Sub CATMain() Dim intNbEdges As...

Part and Inventory Search