Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
I am trying to extract Annotations/Notes from Models in EP5.0 to use in the Pro/WebLink program that I am creating. Any suggestions on commands to get them??? I haven't found much documentaiton on this, no examples, and haven't been able to get "GetText()" or "Note.Lines" to work.
Thanks!
Hi Jen...
I'm in the same boat. I'm working on Weblink stuff now. As soon as I understand it all, I think someone needs to put out a really destailed tutorial to get people up and running.
They need to put out a "Hello World" type tutorial to get people started. Regrettfully I am just not at that level yet so I cannot help. I feel your pain... and I wish you the best of luck. Programming topics such as J-Link, WebLink, and Toolkit are very, very scarce. I think anyone who understands them is off making money selling those skills!
Sorry I couldn't help with this one... but I continue to hope someone with experience and the desire to share it will step up and fill the void!
Thanks!
-Brian
Hello Jen
Do you still try to solve this problem?
To extract Annotations, you can use pfcModelItemOwner.listItems(pfcCreate("pfcModelItemType").ITEM_NOTE)
like this
var session=pfcCreate("MpfcCOMGlobal").GetProESession();
var model=session.currentModel;
var notes=model.listItems(pfcCreate("pfcModelItemType").ITEM_NOTE);
for(var i=0;i<notes.count;i++)
{
var note=notes.item(i);
var lines=note.Lines;
for(var j=0;j<lines.count;j++)
{
var line=lines.item(j);
alert(line);
}
}