draftlibs::dxfLibrary::Block Class Reference

class _Mtext(_Entity): """Mtext not functioning for minimal dxf.""" def __init__(self,text='',point=(0,0,0),attachment=1, charWidth=None,charHeight=1,direction=1,height=100,rotation=0, spacingStyle=None,spacingFactor=None,style=None,width=100, xdirection=None,**common): _Entity.__init__(self,**common) self.text=text self.point=point self.attachment=attachment self.charWidth=charWidth self.charHeight=charHeight self.direction=direction self.height=height self.rotation=rotation self.spacingStyle=spacingStyle self.spacingFactor=spacingFactor self.style=style self.width=width self.xdirection=xdirection def __str__(self): input=self.text text='' while len(input)>250: text+='3
s
'input[:250] input=input[250:] text+='1
s
'input result= '0
s
s
s
s
s
ss
s
s
'%\ (self._common(),_point(self.point),self.charHeight,self.width, self.attachment,self.direction,text, self.height, self.rotation) if self.style:result+='7
s
'self.style if self.xdirection:result+='s
'_point(self.xdirection,1) if self.charWidth:result+='42
s
'self.charWidth if self.spacingStyle:result+='73
s
'self.spacingStyle if self.spacingFactor:result+='44
s
'self.spacingFactor return result More...

Inheritance diagram for draftlibs::dxfLibrary::Block:
draftlibs::dxfLibrary::_Collection draftlibs::dxfLibrary::_Call

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 base
 entities
 flag
 layer
 name

Detailed Description

class _Mtext(_Entity): """Mtext not functioning for minimal dxf.""" def __init__(self,text='',point=(0,0,0),attachment=1, charWidth=None,charHeight=1,direction=1,height=100,rotation=0, spacingStyle=None,spacingFactor=None,style=None,width=100, xdirection=None,**common): _Entity.__init__(self,**common) self.text=text self.point=point self.attachment=attachment self.charWidth=charWidth self.charHeight=charHeight self.direction=direction self.height=height self.rotation=rotation self.spacingStyle=spacingStyle self.spacingFactor=spacingFactor self.style=style self.width=width self.xdirection=xdirection def __str__(self): input=self.text text='' while len(input)>250: text+='3
s
'input[:250] input=input[250:] text+='1
s
'input result= '0
s
s
s
s
s
ss
s
s
'%\ (self._common(),_point(self.point),self.charHeight,self.width, self.attachment,self.direction,text, self.height, self.rotation) if self.style:result+='7
s
'self.style if self.xdirection:result+='s
'_point(self.xdirection,1) if self.charWidth:result+='42
s
'self.charWidth if self.spacingStyle:result+='73
s
'self.spacingStyle if self.spacingFactor:result+='44
s
'self.spacingFactor return result

Use list methods to add entities, eg append.

Definition at line 531 of file dxfLibrary.py.


Member Function Documentation

def draftlibs::dxfLibrary::Block::__init__ (   self,
  name,
  layer = '0',
  flag = 0,
  base = (0,0,
  entities = [] 
)

Definition at line 533 of file dxfLibrary.py.

def draftlibs::dxfLibrary::Block::__str__ (   self  ) 

Definition at line 540 of file dxfLibrary.py.


Member Data Documentation

Definition at line 539 of file dxfLibrary.py.

Reimplemented from draftlibs::dxfLibrary::_Collection.

Definition at line 534 of file dxfLibrary.py.

Definition at line 538 of file dxfLibrary.py.

Definition at line 536 of file dxfLibrary.py.

Definition at line 537 of file dxfLibrary.py.


The documentation for this class was generated from the following file:

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