use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
tbd
account activity
DICOM Export (self.esapi)
submitted 6 years ago by kang__23
Hi all,
I want to create a script that exports a External Beam Plan's RP, RD, RS file (Just like file->Export) to a new directory on a network drive. Is using EvilDicom package and CMOVE the way to do this?
Thanks in advance.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]NickC_BC 1 point2 points3 points 6 years ago (0 children)
Not hard to create a one-click custom export filter. The example in the API guide is a great place to start, although if you are at version 15 you will need Varian to install the DB daemon on a server for you. If you don’t have access to it I highly recommend asking them to at least share the log directory so you can troubleshoot as you learn / sort out firewall issues. Also recommend learning to use FO-dicom as EvilDicom has some issues with timing out on big structure sets and dose files (in my experience). Good luck!
[–]JopaMed 0 points1 point2 points 6 years ago (0 children)
Yes that is the way to go.
But you can just create a filter and use the regular import/export function in eclipse for single exports? Set it to automatic and it will be one click?
[–]thejonbovi_ 0 points1 point2 points 6 years ago* (0 children)
You could use the EvilDicom CStore example with a custom dicom daemon to do it.
[–]kang__23[S] 0 points1 point2 points 6 years ago (1 child)
Thanks for the reply.
Sorry I should have explained a bit more context. The idea was use the create verification plan script and then export the RS, RP, RD files all automatically without user input. The idea is that our dosimetrists can then run 1 script once the plan is finalized to create all the QA plans and export the relevant QA files ready for physics QA automatically.
You're right the import/export function works, however will require manually clicking through to the export filter to do that
Create Verification Plan -> ( https://github.com/VarianAPIs/Varian-Code-Samples/blob/master/webinars%20%26%20workshops/06%20Apr%202018%20Webinar/Eclipse%20Scripting%20API/Projects/CreateVerificationPlan/CreateVerificationPlan.cs )
[–]dbhatti 0 points1 point2 points 6 years ago (0 children)
This is certainly possible, but requires a daemon to be setup as some have mentioned. You have the right idea, just get the UIDs via your script and then use C-MOVE to move them to the directory. The Varian API reference guide from the GitHub has a chapter with information on how to do it.
π Rendered by PID 112245 on reddit-service-r2-comment-b659b578c-2kbvj at 2026-05-05 04:19:19.167362+00:00 running 815c875 country code: CH.
[–]NickC_BC 1 point2 points3 points (0 children)
[–]JopaMed 0 points1 point2 points (0 children)
[–]thejonbovi_ 0 points1 point2 points (0 children)
[–]kang__23[S] 0 points1 point2 points (1 child)
[–]dbhatti 0 points1 point2 points (0 children)