Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski 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 LWolf

  1. LWolf

    CATIA _ AddNewDatums function

    in the documentation: "Creates datums from a multi-domain result feature, one datum is created by object domain. Note; Available only for a shape design feature as input ( not for datum feature )." it seems that sketch USED to be acceptable, now it is not... So I created a JOIN of the sketch...
  2. LWolf

    How to loop through already opened .CATDrawing files in catia v5 using vba

    Sub CATMain() Dim V As Integer Dim StrWindows As String Dim DrawingExists As Boolean DrawingExists = False Set windows2 = CATIA.Windows For V = 1 To windows2.Count StrWindows = windows2.item(V).name MsgBox windows2.item(V).Parent.name If InStr(StrWindows, "Drawing") Then...
  3. LWolf

    Open Drawing sheet and Renumbering

    Sooo... show us your progress; what are you struggling with? Have you searched the forum, the web? Pls. attach your code.
  4. LWolf

    CATPart from Product name

    this functionality exists in Assembly Design Workbench (Tools-Generate CATPart from Product) or in Infrastructure/Product Data Filtering (Product To Part)
  5. LWolf

    Creating Plane

    this code assumes you have already selected your AxisSystem. I retrieve all the info from this axis system (origo, axis coordinates) and create two lines that will span the plane. Sub CATMain() Dim partDocument1 As partDocument Set partDocument1 = CATIA.ActiveDocument Dim part1 As part Set...
  6. LWolf

    Axis system full path

    Hi Tiago, select the Axis System, and set part1.InWorkObject=sel.item(1).value Set CurrentHBody = part1.InWorkObject that will set the parent geo-set as "Define in Work Object" -- and from here you can navigate your way up to the top, right?...
  7. LWolf

    catscript errors

    You really need to post your code. Are you checking the instance? Because that IS a product. Or are you selecting the .catpart (it has only one cog-wheel as icon), one level below the instance.
  8. LWolf

    Macro to automise the insertion of rivet in a strucuture

    If your rivet holes are created with a pattern, you can re-use this same pattern in assembly; CATIA has this functionality in Assembly called "Reuse Pattern"
  9. LWolf

    DESK

    if you save your CATProduct as .txt, you will get all the different levels, albeit in a "retro" feel...
  10. LWolf

    CATIA V5-6 R2018 Not Launching After Windows 11 24H2 Update

    I doubt whether CATIA V5-6 R2018 is still supported...
  11. LWolf

    Macro is running more and more slowly

    I usually try to read a file into CATIA, work on the data, and then dump out the data into the file in one go. and not go back and forth throughout the script execution...
  12. LWolf

    Point on curve on min curvature radius

    yupp, so you will need a VB script and a reaction triggering your curve's update -- both are created from within the Knowledge Advisor Workbench. In the script definition you just specify the argument: "MyOptim" and in the body you state: MyOptim.run(false) The reaction which you set up to be...
  13. LWolf

    Point on curve on min curvature radius

    if you have access to PEO workbench (Product Engineering Optimizer), then you can easily set up an optimization; you need a real parameter that has a formula calculating the curvature, and a point on curve (ratio). in the optimization. the optimized parameter would be the Real parameter, and...
  14. LWolf

    Read point coordinates in CATIA using python

    documentation of pycatia seems to be a bit incomplete... this works on my side... from pycatia import catia catia_app = catia() documents=catia_app.documents print(documents) part = documents.item(1).part spa_workbench = documents.item(1).spa_workbench() hybrid_bodies = part.hybrid_bodies...
  15. LWolf

    How to create logarithmic spiral in generative shape design workbench?

    yeah, sorry I was a bit sloppy... x,y,z and t are real. trig functions need deg or rad as a unit, that is why I explicitly multiply my real parameter t with the unit (*1deg). Angle.1 parameter is already defined as [deg] t runs always from 0 to 1 so the below will draw a helix (circle if z=0)...

Part and Inventory Search