Please find attached an example (AddDistanceMonitor-v0.???.pl) which uses scripting to add a distance monitor between and *-Atom1 and *-Atom2
It is a good idea to have a look at the scripting tutorial “Executing scripts from the User menu” if you run into problems with this procedure how to install the script:
- Import AddDistanceMonitor.pl into a Materials Studio project.
- Open Tools->Scripting->Library
- On the Library tab use File->Add… to add the script from the project.
- Go to the Menu Tab
- Click on Insert: Command.
- Choose a proper title and description.
- Use Script: to configure to use the script which was added under 3.
- Set Requires: to 3D Atomistic document (I am still thinking to allow any documents and do check within the script if we have .xsd or .xtd file)
To use the script rename the atoms accordingly for which you want to add a distance monitor and add -Atom1 or -Atom2 at the end of the atom name using the Properties explorer.
