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...
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...
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...
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...
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...
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...
Hello all,
Here is my code:
Dim hybridShapeLineNormal1 As HybridShapeLineNormal
Set hybridShapeLineNormal1 = hybridShapeFactory1.AddNewLineNormal(reference3, reference1, -5.000000, 5.000000, False)
Set reference4 =...
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...
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...
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...
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...
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...
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...