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.

Symbol name with Web.Link

weblinker

New member
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++)
{
//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)
// }
}
 

Sponsor

Articles From 3DCAD World

Back
Top