◆ make_angular_dimension()
def draftobjects.dimension.make_angular_dimension |
( |
|
center, |
|
|
|
angles, |
|
|
|
p3, |
|
|
|
normal = None |
|
) |
| |
makeAngularDimension(center,angle1,angle2,p3,[normal]): creates an angular Dimension
from the given center, with the given list of angles, passing through p3.
◆ make_dimension()
def draftobjects.dimension.make_dimension |
( |
|
p1, |
|
|
|
p2, |
|
|
|
p3 = None , |
|
|
|
p4 = None |
|
) |
| |
makeDimension(p1,p2,[p3]) or makeDimension(object,i1,i2,p3)
or makeDimension(objlist,indices,p3): Creates a Dimension object with
the dimension line passign through p3.The current line width and color
will be used. There are multiple ways to create a dimension, depending on
the arguments you pass to it:
- (p1,p2,p3): creates a standard dimension from p1 to p2
- (object,i1,i2,p3): creates a linked dimension to the given object,
measuring the distance between its vertices indexed i1 and i2
- (object,i1,mode,p3): creates a linked dimension
to the given object, i1 is the index of the (curved) edge to measure,
and mode is either "radius" or "diameter".