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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

WebLink : determine symbol name

ptc-2228653
1-Newbie

WebLink : determine symbol name

Posted: 28August2009 at 10:04am | IP Logged

Dear all

I try to develop a script which lists all symbol names on a drawing.
The code is working fine with most of the symbols I've tested, but I have a symbol which gives me an error called "pfcXInvalidEnumValue"

I can't understand which problem this symol has.

Maybe someone have an idea on how to examine the symbol to get the reason for the failure.

Best Regards


var symslist = drawing.ListDetailItems(pfcCreate ("pfcDetailType").DETAIL_SYM_INSTANCE, null);
for (var j=0;j<symslist.count;j++)<br/>{
//alert("Nummer : " + (j+1));
//try
//{
var CurSymbol = symslist.Item(j);
var CurSymbolInsts = CurSymbol.GetInstructions ();
var CurSymbolDef = CurSymbolInsts.SymbolDef;
var CurSymbolDefInsts = CurSymbolDef.GetInstructions(); // Error in this line


var SymbolName = CurSymbolDefInsts.FullPath;
var CurSymbolDispayed = CurSymbolInsts.IsDisplayed;
// }
// catch(er)
// {
// //alert(er)
// }
}


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags