Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Change Geometrical Tolerance values c#

Status
Not open for further replies.

grisel360

Mechanical
Joined
Nov 1, 2011
Messages
7
Location
MX
How can I change Tolerance and Datum system of a Geometrical Tolerance in CATIA via c# or, if not, CATVBA .
So far I am only able to change the tolerance type, but have not find a method to change tolerance nor Datum system. Please help!

This is the code I got so far:

string feature_name = "GEN_TOL";
DrawingGDTs DrwTx = DwgDoc.Sheets.ActiveSheet.Views.Item("Background View").GDTs;
DrawingGDT geometricalTolerance = (DrawingGDT)DrwTx.GetItem(feature_name);
geometricalTolerance.SetToleranceType(1, 1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top