Skip to main content
9-Granite
Feb 11, 2026 5:24 AM UTC
Solved

Dimension update using creo toolkit and a text file

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.

 

RPN
RPNAnswer
18-Opal
Feb 12, 2026 1:19 PM UTC
// 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);

3 replies

FV_01
Feb 12, 2026 12:24 AM UTC
9-Granite
Feb 12, 2026 3:52 AM UTC

@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

 

 

 

Translate
RPN
RPN18-OpalAnswer
18-Opal
Feb 12, 2026 1:19 PM UTC
// 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);
Translate