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