Draft: fix trailing whitespace

This commit is contained in:
luzpaz
2023-01-22 14:08:28 +00:00
committed by Uwe
parent 811fbe6e34
commit a4239ccfcf
21 changed files with 64 additions and 64 deletions

View File

@@ -38,7 +38,7 @@ if App.GuiUp:
def make_block(objectslist):
"""make_block(objectslist)
Creates a Draft Block from the given objects.
Parameters

View File

@@ -40,17 +40,17 @@ from draftobjects.drawingview import DrawingView
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.
Add a View of the given object to the given page.
Parameters
----------
lwmod :
modifies lineweights (in percent),
lwmod :
modifies lineweights (in percent),
tmod :
modifies text heights (in percent).
modifies text heights (in percent).
The Hint scale, X and Y of the page are used.
TODO: Document it properly

View File

@@ -33,18 +33,18 @@ import draftmake.make_wire as make_wire
def make_line(first_param, last_param=None):
"""makeLine(first_param, p2)
Creates a line from 2 points or from a given object.
Parameters
----------
first_param :
first_param :
Base.Vector -> First point of the line (if p2 is None)
Part.LineSegment -> Line is created from the given Linesegment
Shape -> Line is created from the give Shape
last_param : Base.Vector
Second point of the line, if not set the function evaluates
Second point of the line, if not set the function evaluates
the first_param to look for a Part.LineSegment or a Shape
"""
if last_param:

View File

@@ -38,12 +38,12 @@ if App.GuiUp:
def make_shape2dview(baseobj,projectionVector=None,facenumbers=[]):
"""make_shape2dview(object, [projectionVector], [facenumbers])
Add a 2D shape to the document, which is a 2D projection of the given object.
Add a 2D shape to the document, which is a 2D projection of the given object.
Parameters
----------
object :
object :
TODO: Describe
projectionVector : Base.Vector

View File

@@ -38,19 +38,19 @@ if App.GuiUp:
def make_shapestring(String, FontFile, Size=100, Tracking=0):
"""ShapeString(Text,FontFile,[Height],[Track])
Turns a text string into a Compound Shape
Parameters
----------
majradius :
majradius :
Major radius of the ellipse.
"""
if not App.ActiveDocument:
App.Console.PrintError("No active document. Aborting\n")
return
obj = App.ActiveDocument.addObject("Part::Part2DObjectPython",
"ShapeString")
ShapeString(obj)

View File

@@ -37,7 +37,7 @@ if App.GuiUp:
def make_workingplaneproxy(placement):
"""make_working_plane_proxy(placement)
Creates a Working Plane proxy object in the current document.
Parameters