Hello ,
Currently I am working on a product template in 3DExperience which has Design Table. Associated excel sheet is saved in 3DX database.
Trying to create a macro to do the following task.
Open the excel sheet associated with Design table which is saved in 3DExperience database ---->...
Hi
I have CATIGeometricalElement from Sweep surface which created newly
CATISpecObject_var spSweep1Guide;
Param1.Append(spGuideCurve);
Param1.Append(spCircle);
spSweep1Guide = CAAGsiObjTool.CreateSweepOneGuide(Param1);
Param1.RemoveAll();
CATIGeometricalElement_var spGeomElemSweep =...
Hi
In CAA V5, I am able to find the specification container and Mechanical Feature using
CATIPrtPart_var spPrtPart = spSpecOnPart;
Now I need to find out all points inside the part. Example is shown below
Could you please direct me for right APIs to use?
I tried the following, but while...
Hi,
If I have 2 product documents open in current session, How do i select or switch between documents within the VBA?
SelectElement2 is used within active document
SelectElement4 is used within non active document
But In my case, I dont know whether selection will be in active document or...
Hi Little,
Here is the code for the function to measure distance between 2 selection. Not sure why values are different in batch mode versus interactive mode. Do you think of any tools-option settings?
' Retrieve the group of all components
Dim cGroups1 'As AnyObject
Set cGroups1 =...
Hi,
I am doing distance calculation between 2 products using following code. I am getting different values while running the same code in interactive mode versus batch mode. Any help to resolve this would be appreciated. Thanks
Dim cDistances As Distances
Set cDistances =...
Hi
While trying to extract a face in CAA, I get an update error. If updating is commented and Extract feature does not have face selected in CATIA.
Any help would be appreciated, Thanks
CATFace_var pFace(FacesList[facesIdx]);
const CATIGSMExtractSolidePropag Proptype =...
Hi,
In my part file, rectangular planar curve is available as a UDF.
I am able to search for UDF inside a part file using
GSDescendants->GetAllChildren("CATIUdfFeature", udfList);
Also got solid body using
spPartRequest->GetSolidBodies(stdContext, SolidBodyList);
I want to know how to...
Hello,
Code seems to be okay. I am able to get coordinates for one of my product instance
Eventhough you are counting body(shapes) + hybridbodies + sketches, you are measuring only for body, So Check if your product instance contains part body / body with solid to measure.
Dim CorpsH As...
10 + years of experience in CATVBA/ PKT / BKT /Win 32 API
1 + year of experience in CAA automation in batch program and interactive tools
Let me know if i can help in some way
Hi I could able to resolve some of the errors. Please see below. Only error is on technological object now.
And I am new to CAA. [sad]. Need your help.
Hi Little,
Thanks for your reply.
You mean I can use VB APIs inside CAA?
For example, How do I use below objects in CAA?
Dim cClashes As Clashes
Set cClashes = product1.GetTechnologicalObject("Clashes")
Dim cClash as Clash
Set cClash = cClashes.Add
Regards
Hi Little,
Thanks for your reply.
My requirement is to run the clash check in batch mode. And my product needs to be pulled from PDM and not going to be in file system.
So I guess the only solution is CAA
Please let me know if there is any alternative.
Regards
Hi,
I am new to CATIA CAAV5. Have anyone done Clash+Interference+Contact Check using CAA APIs?
There are predefined APIs in CAA like (#Define CATDMUCLASH). But not sure how to call it
Please let me know. Thanks in advance
Thank you
I tried to add instance name in listbox using LB_ADDSTRING and LB_SELECTSTRING functions,
- Instance name added to listbox and also selected
- Comboxbox appears in listbox and could see 2 items, Selected Instance name and "No Selection"
- But Preview button is not enabled.
Any...
Hello All,
I tried using WinAPI to compare the products. Facing below issue. Please help
1. Able to get the handle for window "Compare Products"
2. Able to get the handle for listbox "Selector003"
3. But could not able to assign product1 in listbox selection. Tried with Objselection.add...