draftlibs::dxfImportObjects Namespace Reference

Classes

class  Arc
class  Block
class  BlockRecord
class  Circle
class  Ellipse
class  Face
class  Insert
class  Layer
class  Line
class  LWpolyline
class  Mtext
class  Object
class  Polyline
class  Text
class  Vertex

Functions

def get_layer
def get_name
def objectify

Variables

int ALIGNED = 3
int ANONYMOUS = 1
int AT_LEAST = 1
int BASELINE = 0
int BOTTOM = 1
int BOTTOM_CENTER = 8
int BOTTOM_LEFT = 7
int BOTTOM_RIGHT = 9
int BY_STYLE = 5
int BYBLOCK = 0
int BYLAYER = 256
int CENTER = 1
int CLOSED = 1
int CLOSED_N = 32
int CONTINOUS_LINETYPE_PATTERN = 128
int CURVE_FIT = 2
int EXACT = 2
int EXTERNAL = 16
int FIT = 5
int LEFT = 0
int LEFT_RIGHT = 1
int MIDDLE = 4
int MIDDLE_CENTER = 5
int MIDDLE_LEFT = 4
int MIDDLE_RIGHT = 6
int NON_CONSTANT_ATTRIBUTES = 2
int POLYFACE_MESH = 64
int POLYGON_MESH = 16
int POLYLINE_3D = 8
int REFERENCED = 64
int RESOLVED = 32
int RIGHT = 2
int SPLINE_FIT = 4
int TOP = 3
int TOP_BOTTOM = 3
int TOP_CENTER = 2
int TOP_LEFT = 1
int TOP_RIGHT = 3
dictionary type_map
int XREF = 4
int XREF_OVERLAY = 8

Detailed Description

This module provides wrapper objects for dxf entities.
    
    The wrappers expect a "dxf object" as input.  The dxf object is
    an object with a type and a data attribute.  Type is a lowercase 
    string matching the 0 code of a dxf entity.  Data is a list containing
    dxf objects or lists of [code, data] pairs.
    
    This module is not general, and is only for dxf import.

Function Documentation

def draftlibs::dxfImportObjects::get_layer (   data  ) 
Expects object data as input.

Returns (entry, layer_name, entry_index) where entry is the data item that provided the layer name.

Definition at line 1264 of file dxfImportObjects.py.

def draftlibs::dxfImportObjects::get_name (   data  ) 
Get the name of an object from its object data.

Returns a pair of (data_item, name) where data_item is the list entry where the name was found
(the data_item can be used to remove the entry from the object data).  Be sure to check 
name not None before using the returned values!

Definition at line 1250 of file dxfImportObjects.py.

def draftlibs::dxfImportObjects::objectify (   data  ) 
Expects a section type object's data as input.

Maps object data to the correct object type.

Definition at line 1293 of file dxfImportObjects.py.


Variable Documentation

Definition at line 83 of file dxfImportObjects.py.

Definition at line 41 of file dxfImportObjects.py.

Definition at line 65 of file dxfImportObjects.py.

Definition at line 87 of file dxfImportObjects.py.

Definition at line 88 of file dxfImportObjects.py.

Definition at line 58 of file dxfImportObjects.py.

Definition at line 57 of file dxfImportObjects.py.

Definition at line 59 of file dxfImportObjects.py.

Definition at line 63 of file dxfImportObjects.py.

Definition at line 37 of file dxfImportObjects.py.

Definition at line 38 of file dxfImportObjects.py.

Definition at line 69 of file dxfImportObjects.py.

Definition at line 74 of file dxfImportObjects.py.

Definition at line 76 of file dxfImportObjects.py.

Definition at line 70 of file dxfImportObjects.py.

Definition at line 66 of file dxfImportObjects.py.

Definition at line 45 of file dxfImportObjects.py.

Definition at line 85 of file dxfImportObjects.py.

Definition at line 61 of file dxfImportObjects.py.

Definition at line 84 of file dxfImportObjects.py.

Definition at line 55 of file dxfImportObjects.py.

Definition at line 54 of file dxfImportObjects.py.

Definition at line 56 of file dxfImportObjects.py.

Definition at line 42 of file dxfImportObjects.py.

Definition at line 75 of file dxfImportObjects.py.

Definition at line 73 of file dxfImportObjects.py.

Definition at line 72 of file dxfImportObjects.py.

Definition at line 47 of file dxfImportObjects.py.

Definition at line 46 of file dxfImportObjects.py.

Definition at line 71 of file dxfImportObjects.py.

Definition at line 90 of file dxfImportObjects.py.

Definition at line 62 of file dxfImportObjects.py.

Definition at line 52 of file dxfImportObjects.py.

Definition at line 51 of file dxfImportObjects.py.

Definition at line 53 of file dxfImportObjects.py.

Initial value:
{
    'line':Line,
    'lwpolyline':LWpolyline,
    'text':Text,
    'mtext':Mtext,
    'circle':Circle,
    'arc':Arc,
    'layer':Layer,
    'block_record':BlockRecord,
    'block':Block,
    'insert':Insert,
    'ellipse':Ellipse,
    '3dface':Face
}

Definition at line 1278 of file dxfImportObjects.py.

Definition at line 43 of file dxfImportObjects.py.

Definition at line 44 of file dxfImportObjects.py.


Generated on Wed Nov 23 19:01:54 2011 for FreeCAD by  doxygen 1.6.1