Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CAA program to measure between UDF and a face

Status
Not open for further replies.

22555

Automotive
Dec 17, 2003
24
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 measure between a face and User Feature?

When I try to declare UDF as CATIMeasurable, I get a error message
cannot convert from 'CATIUdfFeatureInstance_var' to 'CATIMeasurable_var *'

Thanks in Advance
22555
 
Replies continue below

Recommended for you

Because UDF is basically anything, and may contain no geometry at all, so it makes no sense for CATIMeasurable.

I believe you have to find all of it's faces, vertices and/or edges and use them for measurement.

However, the error you are getting is a compiler one where you have extra pointer level at CATIMeasurable. And DS may have implemented measurable on UDF nevertheless.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor