Is there an annotation API for SmartSEM
Is there an annotation API for SmartSEM
I'd like to have an option to create annotation in a code and then burn it to the screen.
Dear asorkin,asorkin wrote:I'd like to have an option to create annotation in a code and then burn it to the screen.
do you want to produce an arbitrary text annotation in the image from the code, or do you want to display parameters and their current values in the image?
Best regards,
Heiko Stegmann
You would have to save the required parameters in a User Annotation file once, then load that file before running your program. From your code you can grab images and save them with the parameter annotations and their current values burned in.
You can do the same thing from a macro with the 'Photo' command, by the way.
It is not possible to set a free text annotation from within code, but as a workaround it should be possible to use a suitable string parameter, such as 'Sample ID' that can be set from the code, and be used as above.
Regards,
Heiko
You can do the same thing from a macro with the 'Photo' command, by the way.
It is not possible to set a free text annotation from within code, but as a workaround it should be possible to use a suitable string parameter, such as 'Sample ID' that can be set from the code, and be used as above.
Regards,
Heiko
Hi Heiko,Carl Zeiss Microscopy 10 wrote:You would have to save the required parameters in a User Annotation file once, then load that file before running your program. From your code you can grab images and save them with the parameter annotations and their current values burned in.
You can do the same thing from a macro with the 'Photo' command, by the way.
It is not possible to set a free text annotation from within code, but as a workaround it should be possible to use a suitable string parameter, such as 'Sample ID' that can be set from the code, and be used as above.
Regards,
Heiko
Thank you for the answer.
Can you give a bit more details about the 'Photo' command in macro, may be some code sample.
Or may you refer me to some literature where I can found more knowledge base regards the macro writing.
Thanks.
Alexander.
You can run macros from the API
In the API manual it is described how to run macros. However, the macro editor is somewhat limited.
Using the Editor menu "Insert > Special UIF function" you can switch the datazone On or Off. You can also bring up the "Request Annotation Text" dialog. You then have to type in the text you want to display manually.
Your best bet is to pre-edit the datazone so it has all that you want to display and then call that from the macro, and call the macro from the program with the API Execute command.
Regards, Hidde Wallaart
Using the Editor menu "Insert > Special UIF function" you can switch the datazone On or Off. You can also bring up the "Request Annotation Text" dialog. You then have to type in the text you want to display manually.
Your best bet is to pre-edit the datazone so it has all that you want to display and then call that from the macro, and call the macro from the program with the API Execute command.
Regards, Hidde Wallaart
Re:
Did you try on different website too?user-3245 wrote: ↑Fri Jun 28, 2013 3:59 pm Thanks a lot for your reply.
Actually, I'd like to have both types of annotations such as tool's parameters e.g. lightsabers australia, date etc. and also a free edit text.
Thank you
Alexander.