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.

create parameter help in jlink

jruffsr

New member
When I create a parameter using the following it is not visible in the part.



&nbs p; Model model = session.GetCurrentModel();

&nbs p;
Parameter param = model.GetParam(finish_prop_name);

&nbs p;
ParamValue pv = pfcuParamValue .createParamValueFromString(content);

&nbs p;
if (param == null) // GetParam returns null if it can't find the param.

&nbs p; {

&nbs p;
model.CreateParam(finish_prop_name, pv);

&nbs p; }

&nbs p; else

&nbs p; {

&nbs p; param.SetValue (pv);

&nbs p; }



Any help would be appreciated.

Jeff Ruff
 
PTC support came through on this one. I had used a JPanel which spawned
a new thread which lead to unpredicable results. I change to a a
JDialog and the problem was corrected.
 

Sponsor

Articles From 3DCAD World

Back
Top