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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Web.link creating parameter and counting notes

KB_9100625
5-Regular Member

Web.link creating parameter and counting notes

Hi all,

 

so I'm new to Web.link and trying to figure out how it works. is there a way to create a code that makes a parameter then have it count how many PTC_NOTE_TEXT there are and associate that with the parameter?

 

1 REPLY 1
sjuraj
15-Moonstone
(To:KB_9100625)

1. use pfcParameterOwner.CreateParam()

2. call pfcModelItemOwner.ListItems() with ModelItemType.ITEM_DTL_NOTE 

3. count notes with ModelItems.getarraysize ()

4. set value of parameter Parameter.SetValue ()

Announcements


Top Tags