Package mbdyn :: Module common :: Class Block
[hide private]

Class Block

source code

The object for writing a block of arguments in the MBDyn input file

Instance Methods [hide private]
 
__init__(self) source code
 
set_name(self, name)
Set the name of the block
source code
 
indent(self)
Indent the cursor of one more step.
source code
 
dedent(self)
Dedent the cursor of a step.
source code
 
set_file(self, file_to_write)
Set the file on which the block will be written.
source code
 
begin(self, name=None)
Start the block in the MBDyn way, with 'begin:'
source code
 
end(self, name=None)
End the MBDyn block with a 'end;'
source code
 
write_line(self, line)
Write a line in the file with the right indentation and the lineseparator of the operative system
source code
 
write_mbdyn_objects(self, obj_list)
Write all the objects given in the list into the file, manage the indentations
source code