Hi Everyone,
I am trying to solve a problem: thats possible to retrieving shared parameters into a schedule using the API ?
if so can anyone help me, truly need a help.
Thanks
Ludmila
Hi @poslatosenac,
There's a good example of schedule creation in the SDK (refer to the second post in this forum if you need help finding that).
The function to search for is GetSchedulableFields.
It returns an IList of SchedulableField.
Use SchedulableField.GetName(doc) to return the parameter name and compare that to the name of the shared parameter you want to add.
If your parameter isn't there, it can't be scheduled (in that schedule).
Cheers,
-Matt
HI Matt,
thanks a lot for the help !
Another thing I am very newbie ! Saying that could you please write some code for me to do that?
Thanks a lot !!
Hi @poslatosenac,
You're so funny.
The only thing missing from the SDK example is something like this:
Dim field1 As DB.SchedulableField = _
schedulableFields.Where(Function(sf) _
sf.GetName(doc) = "Name of Shared Parameter").FirstOrDefault
If the learning curve to get this going is too steep, then you may want to do some self-learning first.
And MyFirstPlugin
Of course, if you're not up to the task yourself, you may find this post useful:
http://thebuildingcoder.typepad.com/blog/2011/12/finding-a-development-partner.html
Happy Friday!