Skip to main content
9-Granite
February 11, 2026
Solved

Dimension update using creo toolkit and a text file

  • February 11, 2026
  • 2 replies
  • 123 views

Hello all,

Anyone aware of any protoolkit api functions to update dimensions into the cad model and regenerate it. FYKI, i have fetched dimension from cad active model using dimension visit api call and saved into a text file already.

 

Best answer by RPN
// Init a Dimension by model, int dim_id
status = ProModelitemInit(model,dim_id,PRO_DIMENSION,&dim);

//Change it dimValue is a double
status = ProDimensionValueSet(&dim,dimValue);

//Regen
status = ProSolidRegenerate(model, BitMaskRegenOptions);

2 replies

17-Peridot
February 12, 2026
9-Granite
February 12, 2026

@FV_01 Thanks for the response, one doubt above that, how to use ProModelitemInit or ProModelitemByNameInit to find a dimension in an active model ? since i will be loading a file containing dimension to be edited with its name , ID and value

 

 

 

RPN18-OpalAnswer
18-Opal
February 12, 2026
// Init a Dimension by model, int dim_id
status = ProModelitemInit(model,dim_id,PRO_DIMENSION,&dim);

//Change it dimValue is a double
status = ProDimensionValueSet(&dim,dimValue);

//Regen
status = ProSolidRegenerate(model, BitMaskRegenOptions);