saving model

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
zramdane
Regular
Posts: 56
Joined: Sun Feb 09, 2014 6:40 pm

saving model

Post by zramdane »

Hi, I draw a weave pattern using Texgen code, I saved it in *.tg3 (full), Al so in python Texgen command I record the script to get the python model file source. I open the python model file via Notepad, there is only one line. I would like to get all the texgen script of my model. Thank you.
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: saving model

Post by louisepb »

Hi,

The model saved in TexGen format is an xml file. It isn't normally necessary to save as full rather than standard unless you particularly need all the information about the cross sections at all slave nodes.

You will need to send more detail about what you did to create your model when you used the record script for me to be able to comment on why it doesn't seem to have recorded all the commands. Also you would be better trying to open it either in a Python editor or Notepad++ as these will retain the Python formatting.

Best regards,
Louise
zramdane
Regular
Posts: 56
Joined: Sun Feb 09, 2014 6:40 pm

Re: saving model

Post by zramdane »

Hello, the model was built in GUI texgen, I savec it in *.tg3 XML format, by using script record to save my model in scripting python in order to earlier to modify it , I get only one line like:# Script recorded by TexGen v3.10.0


I do not understand. Thank you
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: saving model

Post by louisepb »

Hi,

If for some reason the script record isn't working for what you are trying to do then I need you to tell me exactly what process you used - what options and with what parameters, so that I can try and replicate it to work out what the problem is.

Just to be clear, the saving to xml and recording of a Python script are two completely separate things. The xml file saves the actual model. The Python script will run and generate a model.

Best regards,
Louise
Post Reply