General topics

DxfReader

class import_export.DxfReader.DXFImport(dxfFileName, layerNamesToImport, getRelativeCoo, threshold=0.01, importLines=True, importSurfaces=True)

Bases: object

Import DXF entities.

exportBlockTopology(name)
extractPoints()

Extract the points from the entities argument.

getIndexNearestPoint(pt)
getLayersToImport(namesToImport)

Return the layers names that will be imported according to the regular expressions contained in the second argument.

Parameters:namesToImport – list of regular expressions to be tested.
getNearestPoint(pt)
importFaces()

Import 3D faces from DXF.

importLines()

Import lines from DXF.

importPoints()

Import points from DXF.

selectKPoints()

Selects the k-points to be used in the model. All the points that are closer than the threshold distance are melted into one k-point.

class import_export.DxfReader.OldDxfReader(tol=0.001)

Bases: object

Reading of DXF entities for further processing.

newKeyPoint(pt)
newLine(l)
read(dxf_file_name, xc_preprocessor, layers)
read_lines(entities, layerName)
read_points(entities, layerName)
import_export.DxfReader.layerToImport(layerName, namesToImport)

Return true if the layer name matches one of the regular expressions contained in the second argument.

Parameters:
  • layerName – name of the layer.
  • namesToImport – list of regular expressions to be tested.

NeutralLoadDescription

class import_export.NeutralLoadDescription.ElementLoadRecord(loadCase, bName='nil', v=1.0, mode='nil')

Bases: import_export.NeutralLoadDescription.LoadRecord

class import_export.NeutralLoadDescription.LoadCase(id, name, desc, lg, ltyp)

Bases: object

Load case.

class import_export.NeutralLoadDescription.LoadComb(id, name, desc, typ, descomp)

Bases: object

Load combination.

class import_export.NeutralLoadDescription.LoadCombComponent(id, loadCase, coef)

Bases: object

class import_export.NeutralLoadDescription.LoadContainer(n)

Bases: object

empty()
getNumberOfLoads()
searchLoadedElements(elementSet)

Get load distribution over elements taken from the set.

class import_export.NeutralLoadDescription.LoadData

Bases: object

Container for load groups, cases and combinations.

readLoadCombsFromXC(combContainer, mapLoadCases)
class import_export.NeutralLoadDescription.LoadGroup(id, desc, permanent=False)

Bases: object

Loads wich share some property (origin,…).

class import_export.NeutralLoadDescription.LoadRecord(loadCase, bName='nil', v=1.0)

Bases: object

class import_export.NeutralLoadDescription.NodalLoadRecord(loadCase, bName, pos, v)

Bases: import_export.NeutralLoadDescription.PointForceRecord

Load over a node.

searchLoadedElement(elemSet)
searchLoadedNode(elemSet)
class import_export.NeutralLoadDescription.PointForceRecord(loadCase, bName, pos, v)

Bases: import_export.NeutralLoadDescription.LoadRecord

Force applied in a point.

class import_export.NeutralLoadDescription.SurfaceLoadRecord(loadCase, bName='nil', plg=None, v=1.0, mode='nil')

Bases: import_export.NeutralLoadDescription.ElementLoadRecord

get2DPolygon()
searchLoadedElements(elemSet)

Returns elements which have his center inside the polygon

setPolygon(points)
import_export.NeutralLoadDescription.getComponentsFromStr(descompStr, mapLoadCases)