Changeset View
Changeset View
Standalone View
Standalone View
io_export_dxf/export_dxf.py
| Context not available. | |||||
| Currently only orthographic projection is used. (Subject to discussion). | Currently only orthographic projection is used. (Subject to discussion). | ||||
| """ | """ | ||||
| cam = settings['projectionThrough'] | cam = settings['projectionThrough'] | ||||
| if cam == None: | if cam is None: | ||||
| mw = mathutils.Matrix() | mw = mathutils.Matrix() | ||||
| mw.identity() | mw.identity() | ||||
| elif cam in projectionMapping.keys(): | elif cam in projectionMapping.keys(): | ||||
| Context not available. | |||||
| print('elayer=%s, ecolor=%s, eltype=%s' % (elayer, ecolor, eltype)) | print('elayer=%s, ecolor=%s, eltype=%s' % (elayer, ecolor, eltype)) | ||||
| #TODO: use o.boundBox for drawing extends ?? | #TODO: use o.boundBox for drawing extends ?? | ||||
| if elayer != None and not drawing.containsLayer(elayer): | if elayer is not None and not drawing.containsLayer(elayer): | ||||
| if ecolor!=None: tempcolor = ecolor | if ecolor is not None: tempcolor = ecolor | ||||
| else: tempcolor = settings['layercolor_def'] | else: tempcolor = settings['layercolor_def'] | ||||
| drawing.addLayer(elayer, tempcolor) | drawing.addLayer(elayer, tempcolor) | ||||
| Context not available. | |||||