Draft: various cleanup
Mainly added an empty line at the end of each file and changed docstrings.
This commit is contained in:
committed by
Yorik van Havre
parent
de96fe0658
commit
0e9d274bf4
@@ -45,7 +45,7 @@ def make_array(baseobject, arg1, arg2, arg3, arg4=None,
|
||||
|
||||
|
||||
Rectangular array
|
||||
------
|
||||
-----------------
|
||||
make_array(object,xvector,yvector,xnum,ynum,[name])
|
||||
makeArray(object,xvector,yvector,zvector,xnum,ynum,znum,[name])
|
||||
|
||||
@@ -55,7 +55,7 @@ def make_array(baseobject, arg1, arg2, arg3, arg4=None,
|
||||
|
||||
|
||||
Polar array
|
||||
------
|
||||
-----------
|
||||
makeArray(object,center,totalangle,totalnum,[name]) for polar array, or
|
||||
|
||||
center is a vector, totalangle is the angle to cover (in degrees) and totalnum
|
||||
@@ -63,7 +63,7 @@ def make_array(baseobject, arg1, arg2, arg3, arg4=None,
|
||||
|
||||
|
||||
Circular array
|
||||
------
|
||||
--------------
|
||||
makeArray(object,rdistance,tdistance,axis,center,ncircles,symmetry,[name])
|
||||
|
||||
In case of a circular array, rdistance is the distance of the
|
||||
@@ -122,4 +122,4 @@ def make_array(baseobject, arg1, arg2, arg3, arg4=None,
|
||||
return obj
|
||||
|
||||
|
||||
makeArray = make_array
|
||||
makeArray = make_array
|
||||
|
||||
@@ -60,4 +60,4 @@ def make_block(objectslist):
|
||||
return obj
|
||||
|
||||
|
||||
makeBlock = make_block
|
||||
makeBlock = make_block
|
||||
|
||||
@@ -132,4 +132,4 @@ def make_circle(radius, placement=None, face=None, startangle=None, endangle=Non
|
||||
return obj
|
||||
|
||||
|
||||
makeCircle = make_circle
|
||||
makeCircle = make_circle
|
||||
|
||||
@@ -130,4 +130,4 @@ def make_clone(obj, delta=None, forcedraft=False):
|
||||
return cl
|
||||
|
||||
|
||||
clone = make_clone
|
||||
clone = make_clone
|
||||
|
||||
@@ -208,4 +208,5 @@ def make_copy(obj, force=None, reparent=False):
|
||||
setattr(par, prop, newobj)
|
||||
|
||||
gui_utils.format_object(newobj, obj)
|
||||
return newobj
|
||||
return newobj
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
"""This module provides the code for Draft make_drawing_view function.
|
||||
OBSOLETE: Drawing Workbench was substituted by TechDraw.
|
||||
"""
|
||||
## @package make_drawingview
|
||||
# \ingroup DRAFT
|
||||
# \brief This module provides the code for Draft make_drawing_view function.
|
||||
# \brief This module provides the code for Draft make_drawing_view function
|
||||
|
||||
import FreeCAD as App
|
||||
|
||||
@@ -37,6 +38,7 @@ def make_drawing_view(obj, page, lwmod=None, tmod=None, otherProjection=None):
|
||||
"""
|
||||
make_drawing_view(object,page,[lwmod,tmod])
|
||||
|
||||
This function is OBSOLETE, since TechDraw substituted the Drawing Workbench.
|
||||
Add a View of the given object to the given page.
|
||||
|
||||
Parameters
|
||||
@@ -101,4 +103,4 @@ def make_drawing_view(obj, page, lwmod=None, tmod=None, otherProjection=None):
|
||||
return viewobj
|
||||
|
||||
|
||||
makeDrawingView = make_drawing_view
|
||||
makeDrawingView = make_drawing_view
|
||||
|
||||
@@ -82,4 +82,4 @@ def make_ellipse(majradius, minradius, placement=None, face=True, support=None):
|
||||
return obj
|
||||
|
||||
|
||||
makeEllipse = make_ellipse
|
||||
makeEllipse = make_ellipse
|
||||
|
||||
@@ -63,4 +63,4 @@ def make_facebinder(selectionset, name="Facebinder"):
|
||||
return fb
|
||||
|
||||
|
||||
makeFacebinder = make_facebinder
|
||||
makeFacebinder = make_facebinder
|
||||
|
||||
@@ -70,4 +70,4 @@ def make_line(first_param, last_param=None):
|
||||
return obj
|
||||
|
||||
|
||||
makeLine = make_line
|
||||
makeLine = make_line
|
||||
|
||||
@@ -110,4 +110,5 @@ def make_path_array(baseobject,pathobject,count,xlate=None,align=False,pathobjsu
|
||||
gui_utils.select(obj)
|
||||
return obj
|
||||
|
||||
makePathArray = make_path_array
|
||||
|
||||
makePathArray = make_path_array
|
||||
|
||||
@@ -93,4 +93,4 @@ def make_point(X=0, Y=0, Z=0, color=None, name = "Point", point_size= 5):
|
||||
return obj
|
||||
|
||||
|
||||
makePoint = make_point
|
||||
makePoint = make_point
|
||||
|
||||
@@ -63,4 +63,4 @@ def make_point_array(base, ptlst):
|
||||
return obj
|
||||
|
||||
|
||||
makePointArray = make_point_array
|
||||
makePointArray = make_point_array
|
||||
|
||||
@@ -88,4 +88,4 @@ def make_polygon(nfaces, radius=1, inscribed=True, placement=None, face=None, su
|
||||
return obj
|
||||
|
||||
|
||||
makePolygon = make_polygon
|
||||
makePolygon = make_polygon
|
||||
|
||||
@@ -82,4 +82,4 @@ def make_rectangle(length, height, placement=None, face=None, support=None):
|
||||
return obj
|
||||
|
||||
|
||||
makeRectangle = make_rectangle
|
||||
makeRectangle = make_rectangle
|
||||
|
||||
@@ -68,4 +68,4 @@ def make_shape2dview(baseobj,projectionVector=None,facenumbers=[]):
|
||||
return obj
|
||||
|
||||
|
||||
makeShape2DView = make_shape2dview
|
||||
makeShape2DView = make_shape2dview
|
||||
|
||||
@@ -69,4 +69,4 @@ def make_shapestring(String, FontFile, Size=100, Tracking=0):
|
||||
return obj
|
||||
|
||||
|
||||
makeShapeString = make_shapestring
|
||||
makeShapeString = make_shapestring
|
||||
|
||||
@@ -333,4 +333,4 @@ def make_sketch(objectslist, autoconstraints=False, addTo=None,
|
||||
return nobj
|
||||
|
||||
|
||||
makeSketch = make_sketch
|
||||
makeSketch = make_sketch
|
||||
|
||||
@@ -120,4 +120,4 @@ def make_wire(pointslist, closed=False, placement=None, face=None, support=None,
|
||||
return obj
|
||||
|
||||
|
||||
makeWire = make_wire
|
||||
makeWire = make_wire
|
||||
|
||||
@@ -55,4 +55,4 @@ def make_workingplaneproxy(placement):
|
||||
return obj
|
||||
|
||||
|
||||
makeWorkingPlaneProxy = make_workingplaneproxy
|
||||
makeWorkingPlaneProxy = make_workingplaneproxy
|
||||
|
||||
Reference in New Issue
Block a user