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

using web/link to highlight specific item ?

SOLVED
Highlighted
Participant

using web/link to highlight specific item ?

I found a function in User Guide named pfcScript.pwlItemHighlight(), and the API Wizard showed the information about this function.

pwlItemHighlight (string SelString)

Highlights the specified item

Did anyone know the exact format of  input param 'SelString' ?

I had tried pfcModel.FullName, pfcModel.FileName and didn't work.

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: using web/link to highlight specific item ?

Hello,

you first have to define a selection in Weblink before you can highlight anything:

To build a selection of an item and/or a component in an assembly:

var MyItemSelection = pfcCreate("MpfcSelect").CreateModelItemSelection (MyItem, ItemComponentPath); // ItemComponentPath can be null in part mode

var MyCompSelection = pfcCreate ("MpfcSelect").CreateComponentSelection (MyComponentPath);

To highlight the selection in letter color/yellow:

MyItemSelection.HighLight (pfcCreate ("pfcStdColor").COLOR_LETTER);

To Unhighlight again:

MyItemSelection.Unhighlight();

Andreas Hellmann

View solution in original post

2 REPLIES 2

Re: using web/link to highlight specific item ?

Hello,

you first have to define a selection in Weblink before you can highlight anything:

To build a selection of an item and/or a component in an assembly:

var MyItemSelection = pfcCreate("MpfcSelect").CreateModelItemSelection (MyItem, ItemComponentPath); // ItemComponentPath can be null in part mode

var MyCompSelection = pfcCreate ("MpfcSelect").CreateComponentSelection (MyComponentPath);

To highlight the selection in letter color/yellow:

MyItemSelection.HighLight (pfcCreate ("pfcStdColor").COLOR_LETTER);

To Unhighlight again:

MyItemSelection.Unhighlight();

Andreas Hellmann

View solution in original post

Re: using web/link to highlight specific item ?

Thanks hellmann, you really do me a favor ! Now I can highlight any ModelItem I want.

Announcements