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

    Kill the geo. created by compute in background

    Hello guys, It's me again. I have developed the macro with lots of lines, points to be created by "XXX.Compute" in the background. When I delete the geo which is created based on these lines or points, I find they are still exist just not shown in the structure tree. Is there any way to delete...
  2. zhonyang

    Return the nearnest surface and edge from body against point

    Thanks Cthulhu. Really appreciated.
  3. zhonyang

    Return the nearnest surface and edge from body against point

    Dear all This community is so great for rookie like me. Have anyone ever tried to find the nearest face and edge from a body against a specific point? I am looping through faces and edges and then measure the distance against point to find the nearest one, but it takes too much time. is that...
  4. zhonyang

    Error on creating reference

    I will start a thread soon later, and yes,a face like the way I search
  5. zhonyang

    Error on creating reference

    Hello Cthulhu, thanks for your help always. Have you ever tried to find the closest surface and edge from a body against a specific point? I loop through and measure the distance, is that possible to project the point to body and idenify the projection result belongs to which surface? Here is...
  6. zhonyang

    Error on creating reference

    It works! XDDD
  7. zhonyang

    Error on creating reference

    Thank you so much Cthulhu,I will take a try next week. I have checked the API doc. It shall work. Have a nice weekend.
  8. zhonyang

    Error on creating reference

    Thanks for reply I try to describe it as detailed as I can since it is weekend,and I will get on laptop next monday My task is to return the min width of surface ,and this width need to through a specific point on this surface. Then I try to project a line through this point in each degree...
  9. zhonyang

    Error on creating reference

    Thanks for your reply LWolf! So I can't access to the edge from what I created in background in any method? That's terrible, I have tried to update its model in 3D. It takes too much time.. I rotate and project a line in 360 degrees, means 360 projection lines will be added into my model...
  10. zhonyang

    Error on creating reference

    Hello, Thanks for your reply. It works. Could you help on further issue. When I project a curve on single surface, there could be multi-result under SolutionType = 1. I want to loop through all single curve in this hybridShapeProject1.But I failed. If i update this geo to my model then select...
  11. zhonyang

    Error on creating reference

    Hello all, Here is my code: Dim hybridShapeLineNormal1 As HybridShapeLineNormal Set hybridShapeLineNormal1 = hybridShapeFactory1.AddNewLineNormal(reference3, reference1, -5.000000, 5.000000, False) Set reference4 =...
  12. zhonyang

    Text attribute link

    Hello guys: I'm working on catia 2D drawing. When I want to assign a parameter into text, I search the solution on google...
  13. zhonyang

    Select surface in sidewall/thickness

    Hello all: I'm looking for a way to select the surface in sidewall/thickness by macro. Then I can run my code based on that like measure thickness or extend the boundary of part as I wish. I'm working on metal forming part which may contain one or serval thickness. Sample is attached. Do...
  14. zhonyang

    Catia Macro to export material applied on body

    Thank you so much LWolf!!! It works. XDDDD It must be some mistakes I did before on reading it in Product level.
  15. zhonyang

    Catia Macro to export material applied on body

    Here is the code Sub CATMain() GetNextNode CATIA.ActiveDocument.Product End Sub Sub GetNextNode(oCurrentProduct As Product) Dim oCurrentTreeNode As Product Dim StrNomenclature, StrDesignation, StrWindows As String Dim i As Integer For i = 1 To...
  16. zhonyang

    Catia Macro to export material applied on body

    Hello all: I‘m trying to export the material applied on each body and its Catpart part number. Here is simple code I'm testing. I believe there is something wrong on function "getmaterialonbody".Details product and error report is attached. It even make my catia crash.... Cound anyone know how...
  17. zhonyang

    NX journal : how to access to the items in specific groups

    Thanks. Cowski. Highly appreciated. Now I use "GetAssociatedFeature" to get the feature from tag. But when I run the code below. I find for some feature. I can't get its name or any attributes. Could you kindly point out my fault? For Each tempTag As Tag In memberTags Dim...
  18. zhonyang

    NX journal : how to access to the items in specific groups

    cowski (Mechanical)23 May 23 14:21 Are you talking about feature groups or normal groups (that contain geometric objects)? The link below has code to get the normal groups: https://nxjournaling.com/comment/3601#comment-3601 THanks for your reply cowski ! Yes, I'm talking about normal groups...
  19. zhonyang

    NX journal : how to access to the items in specific groups

    Hello guys: I'm creating a journal on exporting all info. from part navigator table. Specially on the items in groups. It can't record any code for "export to spreadsheet" operation I can get all features by "for each fea as feature in workpart.features", but how to get all...

Part and Inventory Search