Dear All,
I attempted to build a polyamide network by crosslinking MPD and TMC (150:100) using the Materials Studio crosslinking tutorial. I followed the steps below:
From the User Menu: • Import the script into a Materials Studio project • Open Tools | Scripting | Library and add it to your My Favorites library • In the User Menu tab of the same dialog, click Import and select “User Menu.xml” in the file browser • With an appropriately prepared structure open, select User | Simulate | Crosslink to open the user interface:
However, I encountered the following error during execution:
Illegal division by zero at -e line 619.
Could someone please help me resolve this issue?

Which Materials Studio version is this exactly?
On which platform exactly do you try to do the run?
I am not 100% when you get that message. What does "during execution" execution exactly mean?
* When you try to add a script to the user menu?
* When you try to do a run?
Hi,
The crosslinking script as downloaded, xLink.pl, is not formatted for use in User Menu in MS (Materials Studio). Instead, it’s meant to be used through the Perl interface in MS Visualizer. I’d suggest to try run your intended crosslinking using the script interface, first, and make sure it works for you. You can then consider incorporating it into your User Menu. In fact, I’d suggest to go through the User Menu tutorial, first, before attempting to incorporate the xLink.pl script,
Tutorials > Scripting tutorials > Executing scripts from the User menu
Hope it helps,
Jian-jie
crosslinking