Users Forum

ADONIS Category => Useful Scripts => Topic started by: Roozbeh on September 16, 2018, 11:23:54 pm

Title: Use ADONIS javascript to extract mesh information
Post by: Roozbeh on September 16, 2018, 11:23:54 pm
attached script file shows how to use scripting language to extract mesh information. a simple model is created and then the node position and element connectivity as well as element's material id have been stored in the text file.

Note: please make sure you use ADONIS 2.3.5 (latest version updated at 09/16/2018) in which couple of bugs regarding the scripting engine are fixed.
Title: Re: Use ADONIS javascript to extract mesh information
Post by: dennis roddeman on September 19, 2018, 11:39:18 pm
Hi Roozbeh, when I create some rectangle, discretize it, and do nothing else (so I don't define materials and other things), I get an explosion with the attached script.

This is simply your script, without the first part (where you generate the model, materials, and so). Maybe we need some if statements in your script to make it more general in case materials are not defined? Or so?

Thank you, Dennis
Title: Re: Use ADONIS javascript to extract mesh information
Post by: Roozbeh on September 20, 2018, 09:30:48 am
yes it's definitely a bug. will fix it ASAP. thanks