I'm not sure this is the usual forum for this kind of question, but at least seemed like the best fit:
Could anyone tell me why I get an error on line 9 (the first line involving activex) that causes the following web page to not work? The error is listed as "pfcXNotConnectedToProE" in the explanation offered by IE.
<!cylinder dimensions form>
<html>
<head>
<title>Dimensions for Cylinder</title>
<script language="JavaScript">
function ParameterSetValues()
{
var sess = new ActiveXObject("pfc.MpfcCOMGlobal").GetProESession();
var model = new ActiveXObject("pfc.pfcModelDescriptor");
var item = new ActoveXObject("pfc.MpfcModelItem");
var window = sess.OpenFile(model.CreateFromFileName("cylinder.prt"));
var model = sess.GetModelFromFileName("cylinder.prt");
model.GetParam("cyl_diameter").Value=item.CreateDouble ParamValue(document.cl_design.diameter.value);
model.GetParam("cyl_length").Value=item.CreateDoublePa ramValue(document.cyl_design.length.value);model.Regenerate( null);
windowActivate();
window.Repaint();
}
</script>
</head>
<body>
<h1>Enter Cylinder Dimensions</h1>
<form name=cyl_design>
<p>Enter length: <input type=text name=length></p>
<p>Enter diameter: <input type=text name=diameter></p>
<button onclick='ParameterSetValues()' name=finished>ok</button>
</form>
</body>
</html>
Could anyone tell me why I get an error on line 9 (the first line involving activex) that causes the following web page to not work? The error is listed as "pfcXNotConnectedToProE" in the explanation offered by IE.
<!cylinder dimensions form>
<html>
<head>
<title>Dimensions for Cylinder</title>
<script language="JavaScript">
function ParameterSetValues()
{
var sess = new ActiveXObject("pfc.MpfcCOMGlobal").GetProESession();
var model = new ActiveXObject("pfc.pfcModelDescriptor");
var item = new ActoveXObject("pfc.MpfcModelItem");
var window = sess.OpenFile(model.CreateFromFileName("cylinder.prt"));
var model = sess.GetModelFromFileName("cylinder.prt");
model.GetParam("cyl_diameter").Value=item.CreateDouble ParamValue(document.cl_design.diameter.value);
model.GetParam("cyl_length").Value=item.CreateDoublePa ramValue(document.cyl_design.length.value);model.Regenerate( null);
windowActivate();
window.Repaint();
}
</script>
</head>
<body>
<h1>Enter Cylinder Dimensions</h1>
<form name=cyl_design>
<p>Enter length: <input type=text name=length></p>
<p>Enter diameter: <input type=text name=diameter></p>
<button onclick='ParameterSetValues()' name=finished>ok</button>
</form>
</body>
</html>