Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Search results for query: *

  • Users: user7
  • Order by date
  1. user7

    Obtain Edges of Selected Face in C# / Makro

    Ah, you are right; I've overseen that - shapes1 is not even used. Even better!
  2. user7

    Obtain Edges of Selected Face in C# / Makro

    Thank you for your suggestion! Not too bad for the first C# shot. This works perfectly fine! Only thing one copying the code above must verify is the naming of the primary body "PartBody" and the geometrical set "Geometrical Set.1" which can vary. Still think it's crazy that we require 50...
  3. user7

    Obtain Edges of Selected Face in C# / Makro

    Thank you for your response. I would like to obtain the edges only of one certain face. For instance, here, this face in question is selected randomly by search: Selection selection = ((INFITF.Application)Marshal.GetActiveObject("Catia.Application")).ActiveDocument.Selection...
  4. user7

    Obtain Edges of Selected Face in C# / Makro

    In the meantime, I found a solution for CAA - seems like an overkill to me, though... Would be glad if anyone has a solution. The problem seems quite simple - Just get all Edges of a Face... Catia is truely special ;) // pPathElement1 is the path on the face at hand // CATIPrtPart_var...
  5. user7

    Obtain Edges of Selected Face in C# / Makro

    _native_face is a MECMOD.Face obtained like this: Selection.Search("Type=Face,all"); //(sel is some body) facei = Selection.Item(i).Reference
  6. user7

    Obtain Edges of Selected Face in C# / Makro

    thread560-350640 anyone having the solution still in mind for this problem: I have a face, for which I would like to obtain all edges. ActiveCatiaDocument.Selection.Add(_native_face); ActiveCatiaDocument.Selection.Search("Type=Topology.Edge,sel"); delivers 0 elements in selection...
  7. user7

    FTA - Catia V5 - create linear dimension and force direction

    Hi again, just in case someone else stumbles over the same issue... I found a quite ugly solution to this problem... after the dimension (pmi) is created, I select it and just call a "StartCommand" with the text from the context menu - this seems to work.. but I'm quite sure that this is very...
  8. user7

    FTA - Catia V5 - create linear dimension and force direction

    Hi everyone, I would like to create a macro for Catia V5 (FTA) which creates ordinate dimensions for all holes. As a start, I would like to create a simple linear dimension between two holes that are not in line (vertically and horizontally). As depicted in the image (red), the linear dimension...
Back
Top