Browsing this Thread:   1 Anonymous Users


 Bottom   Previous Topic   Next Topic  Register To Post



How to use SendAssociateAC with multiple presentation Context values
Just can't stay away
Joined:
2007/4/3 19:58
From Stamford, Connecticut
Group:
Registered Users
Posts: 47
Level : 5; EXP : 67
HP : 0 / 116
MP : 15 / 1173
Offline
Please forgive my newbie question. I am not new to DICOM nor DVTk, but I always use the ds and dss scripts. I am attempting to look at the vbs scripts and tutorial to see if I can learn enough to improve my use of the DVTk tools.

I am looking at the tutorials, Query SCP script and would like to know how or what to change the SendAssociateAC to for multiple presentation contexts. Currently, the tutorial shows:

SendAssociateAc(New PresentationContext("1.2.840.10008.5.1.4.1.2.1.1", 0, "1.2.840.10008.1.2.1"))

I would like to expand this for the following:
"1.2.840.10008.1.1", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.1.1", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.1.2", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.2.1", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.2.2", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.3.1", 0, "1.2.840.10008.1.2.1"
"1.2.840.10008.5.1.4.1.2.3.2", 0, "1.2.840.10008.1.2.1"

Do I need to use the PresentationContextCollection instead of PresentationContext?

Thank you in advance for your help,
RoseAnn

Posted on: 6/22 22:09
_________________
Enjoy life, this is not a dress rehearsal.
Transfer the post to other applications Transfer


Re: How to use SendAssociateAC with multiple presentation Context values
Just can't stay away
Joined:
2007/4/3 19:58
From Stamford, Connecticut
Group:
Registered Users
Posts: 47
Level : 5; EXP : 67
HP : 0 / 116
MP : 15 / 1173
Offline
Thanks to all that thought of helping. I have found the solution. The Example is for two of the Presentation Contexts.

SendAssociateAC(New PresentationContext(1.2.840.10008.5.1.4.1.2.1.1", 0, "1.2.840.10008.1.2.1"), _
New PresentationContext("1.2.840.10008.5.1.4.1.2.1.2", 0, "1.2.840.10008.1.2.1"))

Posted on: 6/23 21:32
_________________
Enjoy life, this is not a dress rehearsal.
Transfer the post to other applications Transfer



 Top   Previous Topic   Next Topic

 Register To Post


You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]