Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Get Tolerance with Object Toolkit

manoche

New member
Hi, Can anybody tell how i can enter the plus and minus Value of an tolerance ?


now i have

Code:
	wfcSection_ptr section;
	wfcWSession_ptr ses = wfcWSession::cast(pfcGetProESession());
	pfcModel_ptr modd = ses->GetActiveModel();
	pfcSolid_ptr solid = pfcSolid::cast(modd);

	pfcModelItems_ptr moditems = modd->ListItems(pfcITEM_DIMENSION);
	pfcModelItem_ptr dimension = moditems->get(moditems->getarraysize() - 1);
	
	pfcDimension_ptr dim = pfcDimension::cast(dimension);
    pfcDimTolerance_ptr toleranz = dim->GetTolerance();

but how can i get "pfcDimTolPlusMinus_ptr" Type out of the "pfcDimTolerance_ptr" ?

Greets
Jens
 

Sponsor

Articles From 3DCAD World

Back
Top