cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to use ProSecdimValueSet?

LW_8431252
3-Newcomer

How to use ProSecdimValueSet?

ProSection p_section = NULL;

status = ProMdlLoad(L"D:\\s2d00023333", PRO_MDL_2DSECTION, PRO_B_FALSE, (ProMdl*)&p_section);

if (FAIL(status)) return 1;

if (p_section == NULL) return 1;

 

double rval = 0;

status = ProSecdimValueGet(p_section, 3, &rval);

status = ProSecdimValueSet(p_section, 3, rval*1.1);?fail,why?

1 REPLY 1
FV
17-Peridot
17-Peridot
(To:LW_8431252)

could be a weak or locked dimension or creo's intent manager did not like results.

try ProSectionIntentManagerModeSet to false, after that ProSectionSolve or ProSectionSolveRigid and after that ProSecdimValueSet.

Another workaround: try to get the type, references and location of the original dimension, delete the original one, make a new one, strengthen it if needs to be, and use ProSecdimValueSet on the new one.

HIH.

 

 

Announcements


Top Tags