ezdxfDocumentation,Release0.7.6
XLine
classXLine(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisXLINE.
Alinethatextentstoinfinityinbothdirections,usedasconstructionline.CreateXLineinlayoutsandblocks
byfactoryfunctionadd_xline().
DXFAttr
Version
Description
start
R13
locationpointoflineas(3DPoint)
unit_vector
R13
unitdirectionvectoras(3DPoint)
Spline
classSpline(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisSPLINE.
Asplinecurve,allcoordinateshavetobe3Dcoordinateseventhesplineisonlya2Dplanarcurve.
Thesplinecurveisdefinedbyasetoffitpoints,thesplinecurvepassesallthesefitpoints. Thecontrolpoints
definesapolygonwhichinfluencestheformofthecurve,thefirstcontrolpointshouldbeidenticalwiththefirst
fitpointandthelastcontrolpointshouldbeidenticalthelastfitpoint.
Don’taskmeaboutthemeaningofknotvaluesorweightsandhowtheyinfluencethesplinecurve,Idon’tknow
it,askyourmathteacherortheinternet. Ithinktheknotvaluescanbeignored,theywillbecalculatedbythe
CADprogramthatprocessestheDXFfileandtheweightsdeterminestheinfluence‘strength’ofthecontrol
points,innormalcasetheweightsareall1andcanbeleftoff.
TocreateaSplinecurveyoujustneedabunchoffitpoints,controlpoint,knot_valuesandweightsareoptional
(testedwithAutoCAD2010).Ifyouaddadditionaldata,besurethatyouknowwhatyoudo.
CreateSplineinlayoutsandblocksbyfactoryfunctionadd_spline().
FormoreinformationaboutsplinemathematicsgotoWikipedia.
DXFAttr
Version
Description
degree
R13
degreeofthesplinecurve(int)
flags
R13
bitcodedoptionflags(seetablebelow)
n_knots
R13
countofknotvalues(int),automaticallysetbyezdxf,treatitasreadonly
n_fit_points
R13
countoffitpoints(int),automaticallysetbyezdxf,treatitasreadonly
n_control_points
R13
countofcontrolpoints(int),automaticallysetbyezdxf,treatitasreadonly
knot_tolerance
R13
knottolerance(float);default=1e-10
fit_tolerance
R13
fittolerance(float);default=1e-10
control_point_tolerance
R13
controlpointtolerance(float);default=1e-10
start_tangent
R13
starttangentvectoras(3DPoint)
end_tangent
R13
enetangentvectoras(3DPoint)
Splineconstantsforflagsdefinedinezdxf.const:
Spline.dxf.flags
Value
Description
CLOSED_SPLINE
1
Splineisclosed
PERIODIC_SPLINE
2
RATIONAL_SPLINE
4
PLANAR_SPLINE
8
LINEAR_SPLINE
16
planarbitisalsoset
Seealso:
TutorialforSpline
2.3. Reference
47
Convert pdf to html code - Convert PDF to html files in C#.net, ASP.NET MVC, WinForms, WPF application
How to Convert PDF to HTML Webpage with C# PDF Conversion SDK
pdf to html converter; conversion pdf to html
Convert pdf to html code - VB.NET PDF Convert to HTML SDK: Convert PDF to html files in vb.net, ASP.NET MVC, WinForms, WPF application
PDF to HTML Webpage Converter SDK for VB.NET PDF to HTML Conversion
convert pdf to url link; convert pdf to html form
ezdxfDocumentation,Release0.7.6
Spline.closed
TrueifsplineisclosedelseFalse.Aclosedsplinehasaconnectionfromthelastcontrolpointtothefirstcontrol
point.(read/write)
Spline.get_control_points()
Returnsthecontrolpointsaslistof(x,y,z)tuples.
Spline.set_control_points(points)
Setcontrolpoints,pointsisalist(containerorgenerator)of(x,y,z)tuples.
Spline.get_fit_points()
Returnsthefitpointsaslistof(x,y,z)tuples.
Spline.set_fit_points(points)
Setfitpoints,pointsisalist(containerorgenerator)of(x,y,z)tuples.
Spline.get_knot_values()
Returnstheknotvaluesaslistoffloats.
Spline.set_knot_values(values)
Setknotvalues,valuesisalist(containerorgenerator)offloats.
Spline.get_weights()
Returnstheweightvaluesaslistoffloats.
Spline.set_weights(values)
Setweights,valuesisalist(containerorgenerator)offloats.
Spline.edit_data()
Contextmanagerforallsplinedata,returnsSplineData.
Fitpoints,controlpoints,knotvaluesandweightscanbemanipulatedaslistsbyusingthegeneralcontextmanager
Spline.edit_data():
with spline.edit_data() as spline_data:
# spline_data contains s standard d python lists: : add, change or r delete items s as s you u want
# fit_points and d control_points s have to o be e (x, , y, , z)-tuples
# knot_values and d weights s have to o be e numbers
spline_data.fit_points.append((2003000))
# append a a fit t point
# on n exit t the context t manager r calls all l spline set methods s automatically
classSplineData
SplineData.fit_points
StandardPythonlistofSplinefitpointsas(x,y,z)-tuples.(read/write)
SplineData.control_points
StandardPythonlistofSplinecontrolpointsas(x,y,z)-tuples.(read/write)
SplineData.knot_values
StandardPythonlistofSplineknotvaluesasfloats.(read/write)
SplineData.weights
StandardPythonlistofSplineweightsasfloats.(read/write)
Body
classBody(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisBODY.
48
Chapter2. Contents
VB.NET PDF Convert to Tiff SDK: Convert PDF to tiff images in vb.
RasterEdge.XDoc.TIFF.dll. Use corresponding namespaces; using RasterEdge.Imaging. Basic; using RasterEdge.XDoc.PDF; Demo Code to Convert PDF to Tiff Using VB.NET
create html email from pdf; batch convert pdf to html
VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
using RasterEdge.XDoc.PDF; Convert PDF to Word Document in VB.NET Demo Code. This is an example for converting PDF to Word (.docx) file in VB.NET program.
change pdf to html format; embed pdf into html
ezdxfDocumentation,Release0.7.6
A3DobjectcreatedbyanACISbasedgeometrykernelprovidedbytheSpatialCorp. CreateBodyobjectsin
layoutsandblocksbyfactoryfunctionadd_body()ezdxf willneverinterpretACISsourcecode,don’task
meforthisfeature.
Body.get_acis_data()
GettheACISsourcecodeasalistofstrings.
Body.set_acis_data(test_lines)
SettheACISsourcecodeasalistofstringswithoutlineendings.
Body.edit_data()
ContextmanagerforACIStextlines,returnsModelerGeometryData:
with body_entity.edit_data as data:
# data.text_lines is s a a standard Python n list
# remove, , append and modify ACIS source code
data.text_lines ['line 1''line 2''line 3']
# replaces the whole ACIS content (with invalid data)
ModelerGeometryData:
ModelerGeometryData.text_lines
ACISdateaslistofstrings.(read/write)
ModelerGeometryData.__str__()
Returnconcatenatedtext_linesasonestring,linesareseparatedby\n.
Region
classRegion(Body)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisREGION.
AnobjectcreatedbyanACISbasedgeometrykernelprovidedbytheSpatialCorp.CreateRegionobjectsin
layoutsandblocksbyfactoryfunctionadd_region().
Region.get_acis_data()
GettheACISsourcecodeasalistofstrings.
Region.set_acis_data(test_lines)
SettheACISsourcecodeasalistofstringswithoutlineendings.
Region.edit_data()
ContextmanagerforACIStextlines,returnsModelerGeometryData.
3DSolid
class3DSolid(Body)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeis3DSOLID.
A3DobjectcreatedbyanACISbasedgeometrykernelprovidedbytheSpatialCorp.Create3DSolidobjects
inlayoutsandblocksbyfactoryfunctionadd_3dsolid().
3DSolid.get_acis_data()
GettheACISsourcecodeasalistofstrings.
3DSolid.set_acis_data(test_lines)
SettheACISsourcecodeasalistofstringswithoutlineendings.
3DSolid.edit_data()
ContextmanagerforACIStextlines,returnsModelerGeometryData.
2.3. Reference
49
Online Convert PDF to HTML5 files. Best free online PDF html
library control is a 100% clean .NET document image solution, which is designed to help .NET developers convert PDF to HTML webpage using simple C# code.
convert pdf to html online for; how to convert pdf into html
C# PDF Convert to SVG SDK: Convert PDF to SVG files in C#.net, ASP
PDFDocument pdf = new PDFDocument(@"C:\input.pdf"); pdf.ConvertToVectorImages( ContextType.SVG, @"C:\demoOutput Description: Convert to html/svg files and
convert pdf to html with; converting pdf into html
ezdxfDocumentation,Release0.7.6
DXFAttr
Version
Description
history
R13
handletohistoryobject,see:LowLevelAccesstoDXFentities
Image
classImage(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisIMAGE.
AddarasterimagetotheDXFfile,thefileitselfisnotembeddedintotheDXFfile,itisalwaysaseparatedfile.
TheIMAGEentityislikeablockreference,youcanuseitmultipletimestoaddtheimageondifferentlocations
withdifferentscalesandrotations.ButthereforeyouneedaalsoaIMAGEDEFentity,seeImageDef.Create
Imageinlayoutsandblocksbyfactoryfunctionadd_image(). ezdxfcreatesonlyimagesintheXY-plan.
Youcanplaceimagesinthe3Dspacetoo, butthenyouhavetosettheu_pixelandthev_pixelvectorsby
yourself.
DXFAttr
Ver-
sion
Description
insert
R13
Insertionpoint,lowerleftcorneroftheimage
u_pixel
R13
U-vectorofasinglepixel(pointsalongthevisualbottomoftheimage,startingat
theinsertionpoint)(x,y,z)tuple
v_pixel
R13
V-vectorofasinglepixel(pointsalongthevisualleftsideoftheimage,startingat
theinsertionpoint)(x,y,z)tuple
image_size
R13
Imagesizeinpixels
image_def
R13
Handletotheimagedefinitionentity,seeImageDef
flags
R13
seetablebelow
clipping
R13
Clippingstate:0=Off;1=On
brightness
R13
Brightnessvalue(0-100;default=50)
contrast
R13
Contrastvalue(0-100;default=50)
fade
R13
Fadevalue(0-100;default=0)
clip-
ping_boundary_type
R13
Clippingboundarytype.1=Rectangular;2=Polygonal
count_boundary_points
R13
Numberofclipboundaryvertices
Image.dxf.flags
Value
Description
IMAGE_SHOW
1
Showimage
IMAGE_SHOW_WHEN_NOT_ALIGNED
2
Showimagewhennotalignedwithscreen
IMAGE_USE_CLIPPING_BOUNDARY
4
Useclippingboundary
IMAGE_TRANSPARENCY_IS_ON
8
Transparencyison
Image.get_boundary()
Returnsalistofverticesaspixelcoordinates,lowerleftcorneris(0,0)andupperrightcorneris(ImageSizeX,
ImageSizeY),independentfromtheabsolutelocationoftheimageinWCS.
Image.reset_boundary()
Resetboundarypathtothedefaultrectangle[(0,0),(ImageSizeX,ImageSizeY)].
Image.set_boundary(vertices)
Setboundarypathtovertices.2pointsdescribearectangle(lowerleftandupperrightcorner),morethan2points
isapolygonasclippingpath.Setsclippingstateto1andalsosetstheIMAGE_USE_CLIPPING_BOUNDARY
flag.
Image.get_image_def()
returnstheassociatedIMAGEDEFentity.seeImageDef.
50
Chapter2. Contents
C# PDF Convert to Jpeg SDK: Convert PDF to JPEG images in C#.net
Output.jpg"); Following demo code will show how to convert all PDF pages to Jpeg images with C# .NET. // Load a PDF file. String
how to convert pdf to html email; changing pdf to html
C# PDF Convert to Text SDK: Convert PDF to txt files in C#.net
other industry-leading methods to convert target PDF document to other editable file formats using Visual C# code, such as, PDF to HTML converter assembly, PDF
convert pdf fillable form to html; how to change pdf to html format
ezdxfDocumentation,Release0.7.6
ImageDef
classImageDef(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisIMAGEDEF.
ImageDefdefinesanimage,whichcanbeplacedbytheImageentity.CreateImageDefbytheDrawing
factoryfunctionadd_image_def().
DXFAttr
Version
Description
filename
R13
Relative(totheDXFfile)orabsolutepathtotheimagefileasstring
image_size
R13
Imagesizeinpixelas(x,y)tuple
pixel_size
R13
DefaultsizeofonepixelinAutoCADunits(x,y)tuple
loaded
R13
Default=1
resolution_units
R13
Resolutionunits.0=Nounits;2=Centimeters;5=Inch,defaultis0
Underlay
classUnderlay(GraphicEntity)
Introduced in AutoCAD D R13 (DXF version n AC1012), dxftype is s PDFUNDERLAY, DWFUNDERLAY or
DGNUNDERLAY.
AddanunderlayfiletotheDXFfile, thefileitselfisnotembeddedintotheDXFfile, itisalwaysasep-
aratedfile. The(PDF)UNDERLAYentityis s likea block k reference, , youcanuseitmultiple times toadd
the underlayon different locations s with different t scales and rotations. . But t therefore you need a also a
(PDF)DEFINITIONentity,seeUnderlayDefinition.CreateUnderlayinlayoutsandblocksbyfactory
functionadd_underlay().TheDXFstandardsupportsthreedifferentfileformats:PDF,DWF(DWFx)and
DGN.AnUnderlaycanbeclippedbyarectangleorapolygonpath.Theclippingcoordinatesare2DOCS/ECS
coordinatesandindrawingunitsbutwithoutscaling.
DXFAttr
Version
Description
insert
R13
Insertionpoint,lowerleftcorneroftheimage
scale_x
R13
scalingfactorinxdircetion(float)
scale_y
R13
scalingfactorinydircetion(float)
scale_z
R13
scalingfactorinzdircetion(float)
rotation
R13
ccwrotationindegreesaroundtheextrusionvector(float)
extrusion
R13
extrusionvector(default=0,0,1)
underlay_def
R13
Handletotheunderlaydefinitionentity,seeUnderlayDefinition
flags
R13
seetablebelow
contrast
R13
Contrastvalue(20-100;default=100)
fade
R13
Fadevalue(0-80;default=0)
Underlay.dxf.flags
Value
Description
UNDERLAY_CLIPPING
1
clippingison/off
UNDERLAY_ON
2
underlayison/off
UNDERLAY_MONOCHROME
4
Monochrome
UNDERLAY_ADJUST_FOR_BACKGROUND
8
Adjustforbackground
Underlay.clipping
TrueorFalse(read/write)
Underlay.on
TrueorFalse(read/write)
Underlay.monochrome
TrueorFalse(read/write)
2.3. Reference
51
C# PDF Convert to Images SDK: Convert PDF to png, gif images in C#
x86. C# Sample Code for PDF to Png in C#.NET. You can use this sample code to convert PDF file to Png image. // Load a PDF file.
convert pdf into html online; convert pdf into webpage
C# PDF Annotate Library: Draw, edit PDF annotation, markups in C#.
This page will guide C# users how to add text comments on PDF page using C# demo code in Visual Stuodio .NET class. C#.NET: Add Text Box to PDF Document.
converter pdf to html; pdf to web converter
ezdxfDocumentation,Release0.7.6
Underlay.adjust_for_background
TrueorFalse(read/write)
Underlay.scale
Scaling(x,y,z)tuple(read/write)
Underlay.get_boundary()
Returnsalistofverticesaspixelcoordinates,justtwovaluesrepresentthelowerleftandtheupperrightcorners
oftheclippingrectangle,moreverticesdescribeaclippingpolygon.
Underlay.reset_boundary()
Removestheclippingpath.
Underlay.set_boundary(vertices)
Setboundarypathtovertices. 2pointsdescribearectangle(lowerleftandupperrightcorner),morethan2
pointsisapolygonasclippingpath.Setsclippingstateto1.
Underlay.get_underlay_def()
returnstheassociated(PDF)DEFINITIONentity.seeUnderlayDefinition.
UnderlayDefinition
classUnderlayDefinition(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisPDFDEFINITION,DWFDEFINITIONand
DGNDEFINITION.
UnderlayDefinition defines an underlay, , which h can n be placed d by the Underlay entity. Create
UnderlayDefinitionbytheDrawingfactoryfunctionadd_underlay_def().
DXFAttr
Version
Description
filename
R13
Relative(totheDXFfile)orabsolutepathtotheimagefileasstring
name
R13
defineswhattodisplay-pdf:pagenumber;dgn:‘default’;dwf:???
Mesh
classMesh(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisMESH.
3DmeshentitysimilartothePolyfaceentity. CreateMesh inlayoutsandblocks s byfactoryfunction
add_mesh().
Mesh.edit_data()
Contextmanagervariousmeshdata,returnsMeshData.
Seealso:
TutorialforImageandImageDef
DXFAttr
Version
Description
version
R13
int
blend_crease
R13
0=off,1=on
subdivision_levels
R13
int>=0,0=nosmoothing
classMeshData
MeshData.vertices
AstandardPythonlistwith(x,y,z)tuples(read/write)
52
Chapter2. Contents
ezdxfDocumentation,Release0.7.6
MeshData.faces
AstandardPythonlistwith(v1,v2,v3,...)tuples(read/write)
Eachfaceconsistofalistofvertexindices(=indexinMeshData.vertices).
MeshData.edges
AstandardPythonlistwith(v1,v2)tuples(read/write)
Eachedgeconsistofexacttwovertexindices(=indexinMeshData.vertices).
MeshData.edge_crease_values
AstandardPythonlistoffloatvalues,onevalueforeachedge.(read/write)
MeshData.add_face(vertices)
Addafacebycoordinates,verticesisalistof(x,y,z)tuples.
MeshData.add_edge(vertices)
Addanedgebycoordinates,verticesisalistoftwo(x,y,z)tuples.
MeshData.optimize(precision=6)
Triestoreducevertexcountbymergingnearvertices. precisiondefinesthedecimalplacesforcoordinatebe
equaltomergetwovertices.
Seealso:
TutorialforMesh
Hatch
classHatch
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisHATCH.
Fillsanenclosedareadefinedbyoneormoreboundarypathswithahatchpattern,solidfill,orgradientfill.
CreateHatchinlayoutsandblocksbyfactoryfunctionadd_hatch().
Hatch.has_solid_fill
TrueifhatchhasasolidfillelseFalse.(readonly)
Hatch.has_pattern_fill
TrueifhatchhasapatternfillelseFalse.(readonly)
Hatch.has_gradient_fill
TrueifhatchhasagradientfillelseFalse.Ahatchwithgradientfillhasalsoasolidfill.(readonly)
Hatch.bgcolor
Propertybackgroundcoloras(r,g,b)tuple,rgbvaluesinrange0..255(read/write/del)
usage:
color hatch.bgcolor
# get t background color as s (r, , g, b) tuple
hatch.bgcolor (102030)
# set t background color
del hatch.bgcolor
# delete e background color
Hatch.edit_boundary()
Contextmanagertoedithatchboundarydata,yieldsaBoundaryPathDataobject.
Hatch.edit_pattern()
Contextmanagertoedithatchpatterndata,yieldsaPatternDataobject.
Hatch.set_pattern_definition(lines)
Setuphatchpattendefinitionbyalistofdefinitionlinesandadefinitionlineisa4-tuple[angle,base_point,
offset,dash_length_items]
2.3. Reference
53
ezdxfDocumentation,Release0.7.6
angle:lineangleindegrees
base-point:(x,y)tuple
offset:(dx,dy)tuple,addedtobasepointfornextlineandsoon
dash_length_items:listofdashitems(item>0isaline,item<0isagapanditem==0.0isapoint)
Parameters lines(list)–listofdefinitionlines
Hatch.set_solid_fill(color=7,style=1,rgb=None)
SetHatchtosolidfillmodeandremovesallgradientandpatternfillrelateddata.
Parameters
• color(int)–ACI(AutoCADColorIndex)inrange0to256,(0=BYBLOCK;256=
BYLAYER)
• style(int)–hatchstyle(0=normal;1=outer;2=ignore)
• rgb(tuple)–truecolorvalueas(r,g,b)tuple-hashigherprioritythancolor.Truecolor
supportrequiresatleastDXFversionAC1015.
Hatch.set_gradient(color1=(0,0,0),color2=(255,255,255),rotation=0.,centered=0.,one_color=0,
tint=0.,name=’LINEAR’)
SetHatchtogradientfillmodeandremovesallpatternfillrelateddata.GradientsupportrequiresatleastDXF
versionAC1018.Agradientfilledhatchisalsoasolidfilledhatch.
Parameters
• color1(tuple)–(r,g,b)tupleforfirstcolor,rgbvaluesasintinrange0..255
• color2(tuple)–(r,g,b)tupleforsecondcolor,rgbvaluesasintinrange0..255
• rotation(float)–rotationindegrees(360deg=circle)
• centered(int)–determineswhetherthegradientiscenteredornot
• one_color(int)–1forgradientfromcolor1totintedcolor1
• tint(float)–determinesthetintedtargetcolor1foraonecolorgradient. . (validrange
0.0to1.0)
• name(str)–nameofgradienttype,default‘LINEAR’
Validgradienttypenamesare:
•LINEAR
•CYLINDER
•INVCYLINDER
•SPHERICAL
•INVSPHERICAL
•HEMISPHERICAL
•INVHEMISPHERICAL
•CURVED
•INVCURVED
Hatch.get_gradient()
Getgradientdata,returnsaGradientDataobject.
54
Chapter2. Contents
ezdxfDocumentation,Release0.7.6
Hatch.edit_gradient()
Contextmanagertoedithatchgradientdata,yieldsaGradientDataobject.
Hatch.set_pattern_fill(name,color=7,angle=0.,scale=1.,double=0,style=1,pattern_type=1,def-
inition=None)
SetHatchtopatternfillmode.Removesallgradientrelateddata.
Parameters
• color(int)–AutoCADColorIndexinrange0to256, , (0=BYBLOCK;256=BY-
LAYER)
• angle(float)–angleofpatternfillindegrees(360deg=circle)
• scale(float)–patternscaling
• double(int)–doubleflag
• style(int)–hatchstyle(0=normal;1=outer;2=ignore)
• pattern_type(int)–patterntype(0=user-defined;1=predefined;2=custom)???
• definition(list)–listofdefinitionlinesandadefinitionlineisa4-tuple[angle,
base_point,offset,dash_length_items],seeHatch.set_pattern_definition()
Hatch.get_seed_points()
Getseedpointsaslistof(x,y)points,Idon’tknowwhytherecanbemorethanoneseedpoint.
Hatch.set_seed_points(points)
Setseedpoints,pointsisalistof(x,y)tuples,Idon’tknowwhytherecanbemorethanoneseedpoint.
DXFAttr
Ver-
sion
Description
pat-
tern_name
R13
patternnameasstring
solid_fill
R13
solidfill=1,patternfill=0(betteruse:Hatch.set_solid_fill(),
Hatch.set_pattern_fill())
associa-
tive
R13
1forassociativehatchelse0,associationsnothandledbyezdxf,youhavetosetthehandles
totheassociatedDXFentitiesbyyourself.
hatch_style
R13
0=normal;1=outer;2=ignore(searchforAutoCADhelpformoreinformation)
pat-
tern_type
R13
0=user;1=predefined;2=custom;(???)
pat-
tern_angle
R13
patternangleindegrees(360deg=circle)
pat-
tern_scale
R13
asfloat
pat-
tern_double
R13
1=doubleelse0
n_seed_points
R13
countofseedpoints(betteruser:Hatch.get_seed_points())
Seealso:
TutorialforHatch
HatchBoundaryHelperClasses
classBoundaryPathData
Definesthebordersofthehatch,ahatchcanconsistofmorethanonepath.
2.3. Reference
55
ezdxfDocumentation,Release0.7.6
BoundaryPathData.paths
Listofallboundarypaths.ContainsPolylinePathandEdgePathobjects.(read/write)
BoundaryPathData.add_polyline_path(path_vertices,is_closed=1,flags=1)
CreateandaddanewPolylinePathobject.
Parameters
• path_vertices(list)–listofpolylineverticesas(x,y)or(x,y,bulge)tuples.
• is_closed(int)–1foraclosedpolylineelse0
• flags(int)–external(1)oroutermost(16)ordefault(0)
BoundaryPathData.add_edge_path(flags=1)
CreateandaddanewEdgePathobject.
Parameters flags(int)–external(1)oroutermost(16)ordefault(0)
BoundaryPathData.clear()
Removeallboundarypaths.
classPolylinePath
Apolylineashatchboundarypath.
PolylinePath.path_type_flags
external(1)oroutermost(16)ordefault(0)-polyline(2)willbesetbyezdxf
Myinterpretationofthepath_type_flags,seealsoTutorialforHatch:
•external-pathispartofthehatchouterborder
•outermost-pathiscompletelyinsideofoneormoreexternalpaths
•default-pathiscompletelyinsideofoneormoreoutermostpaths
Ifthere are troubles with AutoCAD, maybe the hatch entity contains the pixel size e tag g (47) - delete e it
hatch.AcDbHatch.remove_tags([47])andmaybetheproblemissolved. ezdxf does s notusethe
pixelsizetag,butitcanoccurinDXFfilescreatedbyotherapplications.
PolylinePath.is_closed
TrueifpolylinepathisclosedelseFalse.
PolylinePath.vertices
Listofpathverticesas(x,y,bulge)tuples.(read/write)
PolylinePath.source_boundary_objects
ListofhandlesoftheassociatedDXFentitiesforassociativehatches.Thereisnosupportforassociativehatches
byezdxfyouhavetodoitallbyyourself.(read/write)
PolylinePath.set_vertices(vertices,is_closed=1)
Setnewverticesforthepolylinepath,avertexhastobea(x,y)ora(x,y,bulge)tuple.
PolylinePath.clear()
RemovesallverticesandalllinkstoassociatedDXFobjects(PolylinePath.source_boundary_objects).
classEdgePath
Boundarypathbuildbyedges. Therearefourdifferentedgetypes:LineEdge,ArcEdge,EllipseEdge
ofSplineEdge. Makesuretherearenogapsbetweenedges. AutoCADinthisregardisverypicky. ezdxf
performsnochecksongapsbetweentheedges.
EdgePath.path_type_flags
external(1)oroutermost(16)ordefault(0),seePolylinePath.path_type_flags
56
Chapter2. Contents
Documents you may be interested
Documents you may be interested