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

    CATIA MACRO: Measuring minimum and maximum distance between geometric elements

    Hey yall, It seems that the measure between tool is not doable with macro, if I may ask : How do you measure min and max distances between two geometric features, a point and a line for expl?
  2. DiaeArrahmane

    CATIA MACRO: Formula using Parameters.GetNameToUseInRelation() and arithmetic operations

    Hello, I am trying to create a formula using this line: Set Formula = part.Relations.CreateFormula("X(Central_Cpt)", "", CentralCpt.x, Parameters.GetNameToUseInRelation(RX) & "-" & Parameters.GetNameToUseInRelation(dxCI) & "-20") when RX = 10 and dxCI = 5, the result is not 10-5-20=-15, rather...
  3. DiaeArrahmane

    NX Journal: Offset of a rough surface

    Hello, I am not familiar with NX nor with journaling. I've done some research and I found out about the partial result for offset which make it possible to offset surfaces that cannot be offseted normally if the offset value is relatively large. I just want to make sure I can use this feature to...
  4. DiaeArrahmane

    CATIA MACRO: Update Diagnosis window

    Hey there, I have a macro that offsets many surfaces using a loop, some of these surfaces cannot be offsetted, thus, this window shows up. Is there a way I can inactivate the offset in this case. I kno the inactivate method, but I don't know the if condition I shall use.
  5. DiaeArrahmane

    CATIA MACRO: Surface Simplification /Smoothening

    I don't have the right license rn, I may try it later, but I'm not really sure if it is going to work by its own automatically, because I didn't find any related method on caa documentation. Btw how can I pass the args (surface and offset value) to the command when called in the macro.
  6. DiaeArrahmane

    CATIA MACRO: Surface Simplification /Smoothening

    Well, I have a geometrical set with many surfaces forming together a wide non planar surface. I want to offset this surface, when I do join + offset I get the surface degeneration problem, I dont want to remove any sub-surface, and I am not interested in the details of the surface, that's the...
  7. DiaeArrahmane

    CATIA MACRO: Surface Simplification /Smoothening

    Hello guys, is there a way to smoothen or simplify a complex surface using macros?
  8. DiaeArrahmane

    SelectElement2 is lost if I click

    Why don't you use slectelement3 instead, and use ctrl to do multiselection? {“MultiSelectionMode” can have the following values: “CATMonoSel” (one selection), “CATMultiSelTriggWhenSelPerf” (selection through the “Tools Palette” toolbar, “Shift” and “Ctrl” keys are not supported), or...
  9. DiaeArrahmane

    CATIA MACRO: Please select the surface you want to ...

    Hello, does anyone know if it is possible doing macros to ask the user to select the element, let it be a surface for expl, so the macro can offset it or something?
  10. DiaeArrahmane

    CATIA MACRO: create a new point from a reference point

    The error says the add point function fails. Sub CATMain() Dim Hpart as Part Set Hpart = CATIA.Documents.Item("H.CATPart").Part Dim Hpt As point Set Hpt = HPart.Bodies.Item("PartBody").hybridShapes.Item("H") dim coords(1) as double 'Hpt.GetCoordinates coords 'Msgbox coords(0) 'MsgBox...
  11. DiaeArrahmane

    CATIA MACRO: create a new point from a reference point

    Hello yall, I try to create a new point from a reference point using AddNewPointCoordWithReference but it doesn't work, and I think it's because the reference point A is in part1, while the new point B is in part2. I tried AddNewPointDatum but it seems to be the same problem. How can I do this...
  12. DiaeArrahmane

    CATIA MACRO: Variable Offset

    I tried that using Boolean remove since I am dealing with a product, but it doesn't work with a surface, it actually removes all the offseted surface. I think now about two solutions: - Use of thickness instead of offsetting, then remove shall work properly. - Creating a new sketch where I...
  13. DiaeArrahmane

    CATIA MACRO: Variable Offset

    Hello, let the yellow arc be the surface I want to offset, and the red box be the limit (cannot be modified). Is it possible to offset the arc with a constant default value, and decrease it locally in order to get a variant offset something like the pink shape. Is there a way to do so using...
  14. DiaeArrahmane

    CATIA MACRO: Offset of multiple Surfaces

    That's not a question but rather a contribution (hope I am not giving the wrong solution). Many people encounter problems when working on multiple surfaces such as in: thread560-469264 The solution that worked for me is to create a selection of surfaces I want to offset using search method...
  15. DiaeArrahmane

    CATIA MACRO: Section view from a plane reference

    Hello, I am trying to do a section view from a reference plane (let's say x=3) by using a macro. I can already do this using Insertion/Annotations/Views annotation Planes. Then placing it in drawing using Views/Projections/from 3D. I've tried to record the macro; but didn't work (not sure if...

Part and Inventory Search