diff --git a/docs/notes/Dissecting MTEXT format codes.txt b/docs/notes/Dissecting MTEXT format codes.txt deleted file mode 100644 index 41c48ca80..000000000 --- a/docs/notes/Dissecting MTEXT format codes.txt +++ /dev/null @@ -1 +0,0 @@ -http://adndevblog.typepad.com/autocad/2017/09/dissecting-mtext-format-codes.html \ No newline at end of file diff --git a/docs/notes/Ellipse start and stop parameters.txt b/docs/notes/Ellipse start and stop parameters.txt deleted file mode 100644 index de353bd44..000000000 --- a/docs/notes/Ellipse start and stop parameters.txt +++ /dev/null @@ -1,142 +0,0 @@ -An Explanation of Elliptical Arcs DXF Group Code 41 for LISP and ADS ObjectARX ------------------------------------------------------------------------------- - -By Fenton Webb -http://adndevblog.typepad.com/autocad/2013/01/an-explanation-of-elliptical-arcs-dxf-group-code-41-for-lisp-and-ads-objectarx.html - -Issue - -In elliptical arcs, group code 41 is described as the start parameter. However, -it doesn't seem to be associated with any of the known values for the arc. How -is this value derived? - -Solution - -An elliptical arc is a special version of an arc that follows the eccentricity -of the ellipse. One way to generate this type of arc is to find the parametric -normal of the starting point. To do so, you must specify a start angle that is -different from the actual start angle of the drawn arc. Group code 41 contains -this parametric angle expressed in radians. - -WHAT IS THE PARAMETRIC ANGLE? - -The parametric angle is generated from two concentric circles whose center is -the center of the ellipse and whose radii are the major and minor axes, -respectively. Every point of the ellipse lies either between or on these two -circles, and each elliptical point can be defined by a unique relation to them. -To discover this relationship, draw a line perpendicular to the major axis from -a point on the ellipse to the closest intersection with the circle described by -the major axis. Then do the same with the minor axis, starting from the -elliptical point and drawing perpendicular to the minor axis until the line -intersects the circle described by the minor axis. The two points of -intersection with the circles are collinear with the center of the ellipse. The -angle between the line containing these three points and the major axis is the -parametric angle specified by group code 41. - -HOW DO I CALCULATE IT FROM THE TRUE START ANGLE? - -To calculate the parametric angle from the true start angle, you must first find -the start point on the ellipse. This requires a simultaneous solution to the -equations for the line and the ellipse. In this example we assume that the major -axis of the ellipse lies on the x-axis with the origin at the center of the -ellipse. When this point is found, you can use its y-value and the minor axis to -solve the equation for the circle whose radius is the minor axis value and whose -center is the center of the ellipse. This will provide the x,y point on the -circle that dictates the parametric angle from the center of the ellipse. - -The following is an AutoLisp example that demonstrates how to use trigonometric -functions to determine the parametric angle: - - -(defun c:e_arc( / a b slope ang q1 q2 q3 q4 qmode x y a2) -;assuming 0,0 is at the center of the ellipse, major axis in x direction - (setq ang (getangle '(0.0 0.0) "Choose start angle: ")) - (setq a 1 - b 0.5 - slope (/ (sin ang) (cos ang)) - q1 (/ pi 2.0) - q2 pi - q3 (/ (* 3 pi) 2.0) - q4 (* 2.0 pi) - qmode 'q1 - );setq - (entmake (setq ent '((0 . "ELLIPSE") - (100 . "AcDbEntity") - (100 . "AcDbEllipse") - (10 0.0 0.0 0.0) - (11 1.0 0.0 0.0) - (40 . 0.5) - (62 . 1)) - );setq - );entmake - -;line equation is y = mx + 0, where m is the slope and 0 is the y-intercept -;ellipse equation is x^2/a^2 + y^2/b^2 = 1 -;solve line and ellipse equations simultaneously to find x and y values - - (setq y (/ (* a b slope) (sqrt (+ (* (* slope slope) (* a a)) (* b b)))) - );setq - -;minor axis circle equation is x^2 + y^2 = b^2 -;solve circle equation where y = value calculated above - (setq x (sqrt (- (* b b) (* y y)))) - -;calculate start angle trigonometrically - (setq cos_a2 (/ x b) - sin_a2 (/ y b) - );setq - (if (/= cos_a2 0) - (setq a2 (atan (/ sin_a2 cos_a2))) - (setq a2 q1 qmode 'q1) - );if - - -;make a2 insensitive to quadrant - (cond ((and (> ang q1) (< ang q2)) - (setq a2 (- pi (abs a2)) qmode 'q2 - );setq - );statement 1 - ((and (> ang q2) (< ang q3)) - (setq a2 (+ (abs a2) pi) qmode 'q3 - );setq - );statement 2 - ((and (> ang q3) (< ang q4)) - (setq a2 (abs (- (* 2 pi) (abs a2))) qmode 'q4 - );setq - );statement 3 - - ;special cases: angle = 0, 90, 180, 270 or 360 deg - ((or (= ang 0) (= ang q1)) - (setq qmode 'q1) - );statement 4 - ((= ang q2) - (setq a2 pi qmode 'q1) - );statement 5 - ((= ang q3) - (setq a2 (- (/ pi 2.0) pi) qmode 'q1) - );statement 6 - (t nil);default statement - );cond - - (command "zoom" "c" "0,0" 3) - (setq ent (append ent (list (cons 41 a2) (cons 42 (+ a2 (/ pi 2.0)))))) - (setq ent (subst '(62 . 5) (assoc 62 ent) ent)) - (entmake ent) - - (setq a2 - (cond ((= qmode 'q1) a2) - ((= qmode 'q2) a2) - ((= qmode 'q3) (- a2 q4)) - ((= qmode 'q4) (- a2 q4)) - (t nil) - );cond - );setq - - (princ "\nParametric angle in radians: ") - (princ a2) - (princ "\nParametric angle in degrees: ") - (princ (/ (* 180 a2) pi)) - (princ) - -);e_arc - diff --git a/docs/notes/Hatch pattern and DXF codes.txt b/docs/notes/Hatch pattern and DXF codes.txt deleted file mode 100644 index 80422999f..000000000 --- a/docs/notes/Hatch pattern and DXF codes.txt +++ /dev/null @@ -1,32 +0,0 @@ -Hatch pattern and DXF codes ---------------------------- - -By Gopinath Taget - -http://adndevblog.typepad.com/autocad/2013/01/hatch-pattern-and-dxf-codes.html - -You might wonder what the correlation is between the definition file of a hatch pattern(acad.pat, acadiso.pat) and the -DXF codes of AcDbHatch object. - -The following is dxf code for pattern data: - -53 Pattern line angle -43 Pattern line base point, X component -44 Pattern line base point, Y component -45 Pattern line offset, X component -46 Pattern line offset, Y component -79 Number of dash length items -49 Dash length (multiple entries) - -But you might observe that the values of the pattern in the DXF is not always the same as they are defined in the PAT -file. This is because the pattern values like base point and offset are transformed by parameters like pattern angle. -For instance: - -Pattern line offset, X and Y component : - -Take the values from the pattern file and rotate them around the z-axis with the pattern angle and you will be able to -figure out the value written in the DXF file. For example, from AR-CONC in acadiso.pat, the x and y offset is 104.896, --149.807. Draw a line from 0,0, to 104.896,-149.807 and rotate it about 50 degrees. List its values and you will see -that the line is located at 182.185,-15.9391,0. The base point for rotation is 0,0. If you use the offset value from -DXF file 7.172601826007534,-0.6275213498259511 to draw a line starting at 0,0, you will see this line laps over the line -starting at 0,0 and ending at 182.185,-15.9391. diff --git a/docs/notes/TODO.md b/docs/notes/TODO.md deleted file mode 100644 index fe4ec2ed7..000000000 --- a/docs/notes/TODO.md +++ /dev/null @@ -1,85 +0,0 @@ -TODO List -========= - -DXF Entities ------------- - -- docs for LEADER Reference/Entities -- docs for MLEADER Reference/Entities -- docs for DIMENSION Reference/Entities -- docs for MLINE Reference/Entities -- docs for WIPEOUT Reference/Entities -- docs for TABLE Reference/Entities -- docs for TOLERANCE Reference/Entities -- docs for HELIX Reference/Entities -- docs for LIGHT Reference/Entities -- docs for PROXY/OLEFRAME Reference/Entities -- docs for SECTION - -DXF Objects ------------ - -- docs for LAYOUT Reference/Objects -- docs for PLOTSETTINGS Reference/Objects -- docs for DATATABLE Reference/Objects -- docs for MLINESTYLE Reference/Objects -- docs for MLEADERSTYLE Reference/Objects -- docs for MATERIAL Reference/Objects -- docs for RASTERVARIABLES/WIPEOUTVARIABLES Reference/Objects -- docs for FIELD Reference/Objects -- docs for IDBUFFER Reference/Objects -- docs for LAYER_FILTER Reference/Objects -- docs for LIGHT_LIST Reference/Objects -- docs for RENDER Reference/Objects -- docs for SECTION Reference/Objects -- docs for SORTENTSTABLE Reference/Objects -- docs for SPATIAL_FILTER Reference/Objects -- docs for SUNSTUDY Reference/Objects -- docs for TABLESTYLE Reference/Objects -- docs for VBA_PROJECT Reference/Objects -- docs for VISUALSTYLE Reference/Objects - -Concepts --------- - -- true color -- lineweight - -DXF Internals -------------- - -- DXF Internals for extension dictionaries -- DXF Internals for reactors -- DXF Internals for true color/lineweight -- DXF Internals for POLYLINE -- DXF Internals for GEODATA -- DXF Internals for DICTIONARY -- DXF Internals for XRECORD - -Tutorials ---------- - -- tutorial for extended HATCH usage -- tutorial for lineweight -- tutorial for HELIX -- tutorial for LEADER -- tutorial for MLEADER -- tutorial for DIMENSION -- tutorial for MLINE -- tutorial for TABLE -- tutorial for WIPEOUT -- tutorial for TOLERANCE? -- tutorial for Auditor - -Addons ------- - -- docs for add-on table -- docs for add-on mtext -- docs for add-on dimlines (replaced by native DIMENSION?) - -Auditor -------- - -- docs for Auditor -- check for existence of all referenced BLOCK definitions. diff --git a/docs/notes/Truecolor code 420.txt b/docs/notes/Truecolor code 420.txt deleted file mode 100644 index a4303b656..000000000 --- a/docs/notes/Truecolor code 420.txt +++ /dev/null @@ -1,11 +0,0 @@ -How to access the truecolor property via AutoLISP? --------------------------------------------------- - -By Gopinath Taget -http://adndevblog.typepad.com/autocad/2013/01/how-to-access-the-truecolor-property-via-autolisp.html - -True color property of an entity is stored under the DXF code of 420. It is a 32-bit integer value. When used with True -Color, the 32-bit integer represents a 24-bit color value. The high-order byte (8 bits) is 0, the low-order byte an -unsigned char holds the Blue value (0-255), then comes the Green value, and the next-to-high order byte is the Red Value. -Converting this integer value to hexadecimal yields the following bit mask: 0x00RRGGBB. For example, a true color with -Red = 200, Green = 100 and Blue = 50 is 0x00C86432, and in DXF, in decimal, 13132850. diff --git a/docs/notes/dimvars.txt b/docs/notes/dimvars.txt deleted file mode 100644 index abfa27263..000000000 --- a/docs/notes/dimvars.txt +++ /dev/null @@ -1,125 +0,0 @@ -AutoCAD Dimension Variables -========================== - -DIMADEC Controls the number of decimal places for angular dimensions. -DIMALT Off Enables or disables alternate units dimensioning. -DIMALTD 2 (imperial) Controls decimal places for alternate units dimensions. - 3 (metric) - -DIMALTF 25.4000 Alternate units dimension scale factor. -DIMALTRND 0.0000 Rounding value for alternate dimension units. -DIMALTTD 2 (imperial) Decimal places for alternate units tolerance values. - 3 (metric) - -DIMALTTZ 0 Zero suppression for alternate units tolerance values. -DIMALTU 2 Units format for alternate units dimensions. -DIMALTZ 0 Zero suppression for alternate units dimension values. -DIMANNO Tells if the dimension style is annotative. -DIMAPOST "" Prefix/suffix for alternate units dimensions. -DIMARCSYM 0 Displays arc symbols in arc length dimensions. -DIMASSOC 2 Controls associative dimensioning. -DIMASZ 0.2800 Dimension line and arrowhead size. -DIMATFIT 3 Controls placement of text and arrowheads when there is insufficient space between the - extension lines. -DIMAUNIT 0 Unit format for angular dimension values. -DIMAZIN 0 Controls zero suppression for angular dimensions. -DIMBLK "" Block type to use for both arrowheads. -DIMBLK1 "" Block type to use for first arrowhead. -DIMBLK2 "" Block type to use for second arrowhead. -DIMCEN 0.0900 (imp.) Controls placement of center marks or centerlines. - 2.5000 (metric) - -DIMCLRD 0 Dimension line, arrowhead, and leader line color. -DIMCLRE 0 Dimension extension line color. -DIMCLRT 0 Dimension text color. -DIMDEC 4 (imperial) Decimal places for dimension values. - 2 (metric) - -DIMDLE 0.0000 Dimension line extension beyond extension lines. -DIMDLI 0.3800 (imp.) Incremental spacing between baseline dimensions. - 3.7500 (metric) - -DIMDSEP . (imp.) Specifies a single character to use as a decimal separator - , (metric) - -DIMEXE 0.2800 (imp.) Extension line distance beyond dimension line. - 2.2500 (metric) - -DIMEXO 0.0625 (imp.) Distance from origin points to extension lines. - 0.6250 (metric) - -DIMFRAC 0 Controls the fraction format used for architectural and fractional dimensions. -DIMFXL 1.0000 Length of extension lines between dimension line and dimension origin. -DIMFXLON Off Sets extension lines to a fixed length. -DIMGAP 0.0900 (imp.) Gap size between dimension line and dimension text. - 0.6250 (metric) - -DIMJOGANG 45 Angle of the transverse segment of a jogged radius dimension. -DIMJUST 0 Horizontal justification of dimension text. -DIMLDRBLK "" Controls the type of arrowhead used for leaders. -DIMLFAC 1.0000 Scale factor for linear dimension values. -DIMLIM Off Toggles creation of limits-style dimension text. -DIMLTEX1 "" First extension line’s linetype. -DIMLTEX2 "" Second extension line’s linetype. -DIMLTYPE "" Sets a dimension line’s linetype. -DIMLUNIT 2 Specifies units for all nonangular dimensions. -DIMLWD -2 Lineweight value for dimension lines. -DIMLWE -2 Lineweight value for extension lines. -DIMPOST (none) Prefix/suffix for primary units dimension values. -DIMRND 0.0000 Rounding value for dimensions. -DIMSAH Off Toggles appearance of arrowhead blocks. -DIMSCALE 1.0000 Global dimension feature scale factor. -DIMSD1 Off Toggles suppression of first dimension line. -DIMSD2 Off Toggles suppression of second dimension line. -DIMSE1 Off Toggles suppression of first extension line. -DIMSE2 Off Toggles suppression of second extension line. -DIMSOXD Off Suppresses dimension lines outside extension lines. -DIMSTYLE Name of current dimension style. -DIMTAD 0 (imperial) Sets text placement relative to dimension line. - 1 (metric) - -DIMTDEC 4 (imperial) Decimal places for primary units tolerance values. - 2 (metric) - -DIMTFAC 1.0000 Scale factor for fractional or tolerance text size. -DIMTFILL 0 Changes background of dimension text. -DIMTFILLCLR 0 Changes color for text background in dimensions. -DIMTIH On (imperial) Orientation of text inside extension lines. - Off (metric) - -DIMTIX Off Toggles forced placement of text between extension lines. -DIMTM 0.0000 Lower tolerance value for tolerance dimensions. -DIMTMOVE 0 Controls the format of dimension text when it is moved. -DIMTOFL Off (imperial) Toggles forced dimension line creation. - On (metric) - -DIMTOH On (imperial) Orientation of text outside extension lines. - Off (metric) - -DIMTOL 1 (imperial) Toggles creation of appended tolerance dimensions. - 0 (metric) - -DIMTOLJ 1 Vertical justification for dimension tolerance text. -DIMTP 0.0000 Upper tolerance value for tolerance dimensions. -DIMTSZ 0.0000 Controls size of dimension line tick marks drawn instead of arrowheads. -DIMTVP 0.0000 Vertical position of text above or below dimension line. -DIMTXSTY Standard Text style used for dimension text. -DIMTXT 0.2800 (imp.) Size of dimension text. - 2.5000 (metric) - -DIMTXTDIRECTION 0 Controls the reading direction of dimension text. -DIMTZIN 0 (imperial) Zero suppression for primary units tolerance values. - 8 (metric) - -DIMUPT Off Controls user placement of dimension line and text. -DIMZIN 0 (imperial) Zero suppression for primary units dimensions. - 8 (metric) - - -DIMSTYLE OVERRIDE EXAMPLE -========================= - -Dimension style overrides can be applied to dimension, leader, and tolerance entities. Any overrides applied to these -entities are stored in the entity as xdata. The overridden dimension variable group codes and the related values are -contained within group 1002 control strings. - -http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-6A4C31C0-4988-499C-B5A4-15582E433B0F - -1001 -ACAD -1000 -DSTYLE -1002 -{ -1070 -147 -1040 -0.09375 -1070 -77 -1070 -0 -1002 -} diff --git a/docs/notes/dxf-group-code-reference.txt b/docs/notes/dxf-group-code-reference.txt deleted file mode 100644 index cdd1b6294..000000000 Binary files a/docs/notes/dxf-group-code-reference.txt and /dev/null differ diff --git a/docs/notes/guid.txt b/docs/notes/guid.txt deleted file mode 100644 index 9d9eceb3b..000000000 --- a/docs/notes/guid.txt +++ /dev/null @@ -1,78 +0,0 @@ -DXF R2000 ---------- - - 9 -$FINGERPRINTGUID - 2 -{87508E45-A688-1D4F-8836-C8F484AEB932} - 9 -$VERSIONGUID - 2 -{5D0B86FF-D69C-CA4A-9535-34A8EEFF0DBB} - -DXF R2004 ---------- - - 9 -$FINGERPRINTGUID - 2 -{AAA82471-D988-AC4D-8122-786CA62F8CF8} - 9 -$VERSIONGUID - 2 -{4CEB74B2-241B-2149-AE88-36B0329E604C} - -DXF R2007 ---------- - - 9 -$FINGERPRINTGUID - 2 -{FCE7787D-C35C-1643-AD86-059441CD486E} - 9 -$VERSIONGUID - 2 -{BA0D1F3D-BCA0-A94D-B59C-9FDBAE84D543} - -DXF R2010 ---------- - - 9 -$FINGERPRINTGUID - 2 -{6C540921-3726-B34D-985F-307B2EAC2555} - 9 -$VERSIONGUID - 2 -{15928A21-DD32-1443-B9D8-96B231DB8B87} - -DXF R2013 ---------- - - 9 -$FINGERPRINTGUID - 2 -{CC4C6F52-2DC8-9B48-9505-A645548D5763} - 9 -$VERSIONGUID - 2 -{8980D5DAAAA7} - -DXF R2018 ---------- - - 9 -$FINGERPRINTGUID - 2 -{68953808-E348-E746-A83A-07C132AE1E3A} - 9 -$VERSIONGUID - 2 -{6A8F2EF5-600E-9A47-B8E3-38C201B37208} - - -All versions use the same GUID schema. - -Python uuid.uuid1() produces the same schema: - - str(uuid.uuid1()).upper() \ No newline at end of file diff --git a/docs/notes/layout_testing.md b/docs/notes/layout_testing.md deleted file mode 100644 index b40bf3156..000000000 --- a/docs/notes/layout_testing.md +++ /dev/null @@ -1,405 +0,0 @@ -#LAYOUT: A4 M1_1 -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ISO_A4_(297.00_x_210.00_MM) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 297.0 -(45) paper_height: 210.0 -(46) plot_origin_x_offset: 0.0 -(47) plot_origin_y_offset: 0.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 1.0 -(70) plot_layout_flags: 688 b1010110000 -(72) plot_paper_units: 1 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 1.0 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: A4 M1_1 -(7) layout_flags: A4 M1_1 -(70) layout_flags: 1 b1 -(71) taborder: 1 -(10) limmin: (-5.793749809265136, -17.79375076293945) -(11) limmax: (291.2062501907349, 192.2062492370605) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (25.68037488762537, 19.49815134388854, -0.0015258207003583) -(15) extmax: (231.3135382334088, 175.5017218376691, 3.49246037e-08) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: A4 M1_1 offset -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ISO_A4_(297.00_x_210.00_MM) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 297.0 -(45) paper_height: 210.0 -(46) plot_origin_x_offset: 37.0 -(47) plot_origin_y_offset: 53.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 1.0 -(70) plot_layout_flags: 688 b1010110000 -(72) plot_paper_units: 1 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 1.0 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: A4 M1_1 offset -(7) layout_flags: A4 M1_1 offset -(70) layout_flags: 1 b1 -(71) taborder: 5 -(10) limmin: (-42.79374980926514, -70.79375076293945) -(11) limmax: (254.2062501907349, 139.2062492370605) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (29.06606628894805, 20.36233246326446, 0.0) -(15) extmax: (261.5945966005325, 183.2609921693802, 0.0) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: A4 M1_50 -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ISO_A4_(297.00_x_210.00_MM) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 297.0 -(45) paper_height: 210.0 -(46) plot_origin_x_offset: 0.0 -(47) plot_origin_y_offset: 0.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 50.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 1 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 1.0 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: A4 M1_50 -(7) layout_flags: A4 M1_50 -(70) layout_flags: 1 b1 -(71) taborder: 3 -(10) limmin: (-289.6874904632568, -889.6875381469727) -(11) limmax: (14560.31250953674, 9610.31246185303) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (1e+20, 1e+20, 1e+20) -(15) extmax: (-1e+20, -1e+20, -1e+20) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: A4 M1_50 offset -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ISO_A4_(297.00_x_210.00_MM) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 297.0 -(45) paper_height: 210.0 -(46) plot_origin_x_offset: 47.0 -(47) plot_origin_y_offset: 53.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 50.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 1 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 1.0 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: A4 M1_50 offset -(7) layout_flags: A4 M1_50 offset -(70) layout_flags: 1 b1 -(71) taborder: 7 -(10) limmin: (-2639.687490463257, -3539.687538146973) -(11) limmax: (12210.31250953674, 6960.312461853027) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (1e+20, 1e+20, 1e+20) -(15) extmax: (-1e+20, -1e+20, -1e+20) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: ANSI A M1_1 -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ANSI_A_(11.00_x_8.50_Inches) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 279.3999938964844 -(45) paper_height: 215.8999938964844 -(46) plot_origin_x_offset: 0.0 -(47) plot_origin_y_offset: 0.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 1.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 0 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 0.0393700787401575 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: ANSI A M1_1 -(7) layout_flags: ANSI A M1_1 -(70) layout_flags: 1 b1 -(71) taborder: 2 -(10) limmin: (-0.2281003861915408, -0.7005413686196637) -(11) limmax: (10.77189937351257, 7.799458391084445) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (25.69999999999999, 19.5, 0.0) -(15) extmax: (231.3, 175.5, 0.0) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: ANSI A M1_1 offset -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ANSI_A_(11.00_x_8.50_Inches) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 279.3999938964844 -(45) paper_height: 215.8999938964844 -(46) plot_origin_x_offset: 76.19999999999997 -(47) plot_origin_y_offset: 76.19999999999997 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 1.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 0 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 0.0393700787401575 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: ANSI A M1_1 offset -(7) layout_flags: ANSI A M1_1 offset -(70) layout_flags: 1 b1 -(71) taborder: 6 -(10) limmin: (-3.228100386191539, -3.700541368619663) -(11) limmax: (7.771899373512568, 4.799458391084447) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (25.69999999999999, 19.5, 0.0) -(15) extmax: (231.3, 175.5, 0.0) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: ANSI A M1_50 -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ANSI_A_(11.00_x_8.50_Inches) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 279.3999938964844 -(45) paper_height: 215.8999938964844 -(46) plot_origin_x_offset: 0.0 -(47) plot_origin_y_offset: 0.0 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 50.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 0 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 0.0393700787401575 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: ANSI A M1_50 -(7) layout_flags: ANSI A M1_50 -(70) layout_flags: 1 b1 -(71) taborder: 4 -(10) limmin: (-11.40501930957704, -35.02706843098318) -(11) limmax: (538.5949686756283, 389.9729195542223) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (1e+20, 1e+20, 1e+20) -(15) extmax: (-1e+20, -1e+20, -1e+20) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: ANSI A M1_50 offset -##PLOT SETTINGS: -(1) page_setup_name: DWG To PDF.pc3 -(2) plot_configuration_file: DWG To PDF.pc3 -(4) paper_size: ANSI_A_(11.00_x_8.50_Inches) -(6) plot_view_name: -(40) left_margin: 5.793749809265136 -(41) bottom_margin: 17.79375076293945 -(42) right_margin: 5.79376220703125 -(43) top_margin: 17.79374694824219 -(44) paper_width: 279.3999938964844 -(45) paper_height: 215.8999938964844 -(46) plot_origin_x_offset: 76.19999999999997 -(47) plot_origin_y_offset: 76.19999999999997 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 50.0 -(70) plot_layout_flags: 672 b1010100000 -(72) plot_paper_units: 0 -(73) plot_rotation: 0 -(74) plot_type: 5 -(7) current_style_sheet: -(75) standard_scale_type: 16 -(147) scale_factor: 0.0393700787401575 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: ANSI A M1_50 offset -(7) layout_flags: ANSI A M1_50 offset -(70) layout_flags: 1 b1 -(71) taborder: 8 -(10) limmin: (-161.405019309577, -185.0270684309831) -(11) limmax: (388.5949686756285, 239.9729195542223) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (1e+20, 1e+20, 1e+20) -(15) extmax: (-1e+20, -1e+20, -1e+20) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - -#LAYOUT: Model -##PLOT SETTINGS: -(1) page_setup_name: none_device -(2) plot_configuration_file: none_device -(4) paper_size: ISO_A4_(210.00_x_297.00_MM) -(6) plot_view_name: -(40) left_margin: 7.5 -(41) bottom_margin: 20.0 -(42) right_margin: 7.5 -(43) top_margin: 20.0 -(44) paper_width: 210.0 -(45) paper_height: 297.0 -(46) plot_origin_x_offset: 11.54999923706054 -(47) plot_origin_y_offset: -13.65000009536743 -(48) plot_window_x1: 0.0 -(49) plot_window_y1: 0.0 -(140) plot_window_x2: 0.0 -(141) plot_window_y2: 0.0 -(142) scale_numerator: 1.0 -(143) scale_denominator: 8.704084754739808 -(70) plot_layout_flags: 11952 b10111010110000 -(72) plot_paper_units: 1 -(73) plot_rotation: 0 -(74) plot_type: 0 -(7) current_style_sheet: -(75) standard_scale_type: 0 -(147) scale_factor: 0.1148885871608098 -(148) paper_image_origin_x: 0.0 -(149) paper_image_origin_y: 0.0 -##LAYOUT SETTINGS: -(1) name: Model -(7) layout_flags: Model -(70) layout_flags: 1 b1 -(71) taborder: 0 -(10) limmin: (0.0, 0.0) -(11) limmax: (12.0, 9.0) -(12) insert_base: (0.0, 0.0, 0.0) -(14) extmin: (0.0, 0.0, 0.0) -(15) extmax: (0.0, 0.0, 0.0) -(146) elevation: 0.0 -(13) ucs_origin: (0.0, 0.0, 0.0) -(16) ucs_xaxis: (1.0, 0.0, 0.0) -(17) ucs_yaxis: (0.0, 1.0, 0.0) -(76) ucs_type: 0 - diff --git a/docs/notes/line_cap_and_join_syles.md b/docs/notes/line_cap_and_join_syles.md deleted file mode 100644 index d97dd5090..000000000 --- a/docs/notes/line_cap_and_join_syles.md +++ /dev/null @@ -1,104 +0,0 @@ -Line Cap- and Join Styles -========================= - -DXF ---- - -The line cap- and join style is not stored in the DXF entities itself! - -BricsCAD does not support the ENDCAPS and JOINSTYLE settings and always -uses round caps and round join style. - -CTB files define line cap- and join styles: - - - END_STYLE_BUTT = 0 - - END_STYLE_SQUARE = 1 - - END_STYLE_ROUND = 2 - - END_STYLE_DIAMOND = 3 ??? - - END_STYLE_OBJECT = 4 - - - JOIN_STYLE_MITER = 0 - - JOIN_STYLE_BEVEL = 1 - - JOIN_STYLE_ROUND = 2 - - JOIN_STYLE_DIAMOND = 3 ??? - - JOIN_STYLE_OBJECT = 5 - -HEADER Section: - -https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-A85E8E67-27CD-4C59-BE61-4DC9FADBE74A - -$ENDCAPS: Lineweight endcaps setting for **new** objects: - - - 0 = None (butt) - - 1 = Round - - 2 = Angle ??? - - 3 = Square - -$JOINSTYLE: Lineweight joint setting for **new** objects: - - - 0 = None - - 1 = Round - - 2 = Angle (bevel or miter?) - - 3 = Flat (bevel or miter?) - -Matplotlib ----------- - -https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.Line2D.html - -https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.CapStyle - -dash_capstyle: - - - 'butt' - - 'projecting' (square) - - 'round' - -https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.JoinStyle - -dash_joinstyle: - - - 'miter' - - 'round' - - 'bevel' - -PyQt ----- - -https://doc-snapshots.qt.io/qt6-dev/qt.html#PenCapStyle-enum - -Qt.PenCapStyle: - - - Qt.FlatCap (butt) - - Qt.SquareCap - - Qt.RoundCap - -https://doc-snapshots.qt.io/qt6-dev/qt.html#PenJoinStyle-enum - -Qt.PenJoinStyle: - - - Qt.MiterJoin: The outer edges of the lines are extended to meet at an angle, - and this area is filled. - - Qt.BevelJoin: The triangular notch between the two lines is filled. - - Qt.RoundJoin: A circular arc between the two lines is filled. - - Qt.SvgMiterJoin: A miter join corresponding to the definition of a miter - join in the SVG 1.2 Tiny specification. - -SVG ---- - -https://www.w3.org/TR/SVG2/painting.html#StrokeLinecapProperty - -stroke-linecap: - - - 'butt' - - 'round' - - 'square' - -https://www.w3.org/TR/SVG2/painting.html#StrokeLinejoinProperty - - - 'miter' - - 'miter-clip' - - 'round' - - 'bevel' - - 'arcs' diff --git a/docs/notes/unicode-chars.txt b/docs/notes/unicode-chars.txt deleted file mode 100644 index 95051a7d8..000000000 --- a/docs/notes/unicode-chars.txt +++ /dev/null @@ -1,3 +0,0 @@ -pi [Alt-0960?]: π # alt-code does not work for me! -diameter [Alt-0216]: Ø -plus-minus [Alt-0177]: ± diff --git a/docs/notes/viewport.txt b/docs/notes/viewport.txt deleted file mode 100644 index c299ab604..000000000 --- a/docs/notes/viewport.txt +++ /dev/null @@ -1,4 +0,0 @@ -Every paper space layout contains as default VIEWPORT entity with the id=1, (group code 69). - -VIEWPORT id has to be unique to the paper space, it is placed not to the whole -DXF drawing. diff --git a/notes/assets/image_1700073536237_0.png b/notes/assets/image_1700073536237_0.png new file mode 100644 index 000000000..ebe100eaa Binary files /dev/null and b/notes/assets/image_1700073536237_0.png differ diff --git a/docs/notes/lineweights.ods b/notes/assets/lineweights_1700073572548_0.ods similarity index 100% rename from docs/notes/lineweights.ods rename to notes/assets/lineweights_1700073572548_0.ods diff --git a/notes/assets/rsqp87hf_1700071950990_0.bmp b/notes/assets/rsqp87hf_1700071950990_0.bmp new file mode 100644 index 000000000..657765a89 Binary files /dev/null and b/notes/assets/rsqp87hf_1700071950990_0.bmp differ diff --git a/notes/assets/ztc5ooil_1700071777137_0.bmp b/notes/assets/ztc5ooil_1700071777137_0.bmp new file mode 100644 index 000000000..b937edab0 Binary files /dev/null and b/notes/assets/ztc5ooil_1700071777137_0.bmp differ diff --git a/notes/journals/2023_11_15.md b/notes/journals/2023_11_15.md new file mode 100644 index 000000000..b4130dcee --- /dev/null +++ b/notes/journals/2023_11_15.md @@ -0,0 +1,6 @@ +- [[Line Cap- and Join Styles]] +- [[Hatch Pattern and DXF Codes]] +- [[MTEXT format codes]] +- [[Line Width in Pixels]] +- [[DXF Group Codes]] +- [[DIMSTYLE]] \ No newline at end of file diff --git a/notes/pages/ABOUT.md b/notes/pages/ABOUT.md index 7190a2eec..866d7188f 100644 --- a/notes/pages/ABOUT.md +++ b/notes/pages/ABOUT.md @@ -1,7 +1,7 @@ - A Python interface to [[DXF]] - - create new [[DXF]] files - - read/modify/write existing [[DXF]] files - - supported [[DXF]] versions + - create new DXF files + - read/modify/write existing DXF files + - supported DXF versions - read/write/new support for [[DXF]] versions - R12 - R2000 @@ -42,6 +42,7 @@ - Source Code Repository - ((654fc842-3cb5-4081-a70c-0d83fa56b953)) - -- Documentation - - ((654fc722-2018-4a67-a390-6e53bee15db9)) - - ((654fc731-f2a4-4bff-b49b-7deef073f7c7)) \ No newline at end of file +- [[Documentation]] + - ((655326e4-51ca-4fc4-92cf-a6d058022aef)) + - ((655326f7-c17c-4ecf-84b1-ab38e62a8862)) +- \ No newline at end of file diff --git a/notes/pages/CHANGELOG.md b/notes/pages/CHANGELOG.md index 4642b382b..b73e2544a 100644 --- a/notes/pages/CHANGELOG.md +++ b/notes/pages/CHANGELOG.md @@ -67,7 +67,7 @@ - CHANGED: [[FontFace]] class - `weight` attribute is an int value (0-1000) - `stretch` is renamed to `width` and is also an int value (1-9) - - REMOVED: replaced [[matplotlib]] font support module by [[fontTools]] + - REMOVED: replaced [[Matplotlib]] font support module by [[fontTools]] - REMOVED: configuration option `use_matplotlib` - is not needed anymore - REMOVED: configuration option `font_cache_directory` - is not needed anymore - CHANGED: text rendering for the [[drawing add-on]] and text measurement is done by the [[fontTools]] package diff --git a/notes/pages/DIMSTYLE.md b/notes/pages/DIMSTYLE.md new file mode 100644 index 000000000..2bb0bb1b8 --- /dev/null +++ b/notes/pages/DIMSTYLE.md @@ -0,0 +1,2 @@ +- [DXF Reference](https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-F2FAD36F-0CE3-4943-9DAD-A9BCD2AE81DA) +- [ezdxf Docs](https://ezdxf.mozman.at/docs/dxfinternals/tables/dimstyle_table.html) \ No newline at end of file diff --git a/notes/pages/DXF Group Codes.md b/notes/pages/DXF Group Codes.md new file mode 100644 index 000000000..3dfa8ca0c --- /dev/null +++ b/notes/pages/DXF Group Codes.md @@ -0,0 +1,3 @@ +- [[DXF Internals]] +- [Group Code Value Types Reference](https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-2553CF98-44F6-4828-82DD-FE3BC7448113) +- [DXF Group Codes in Numerical Order Reference](https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-3F0380A5-1C15-464D-BC66-2C5F094BCFB9) \ No newline at end of file diff --git a/notes/pages/Documentation.md b/notes/pages/Documentation.md new file mode 100644 index 000000000..38772fb96 --- /dev/null +++ b/notes/pages/Documentation.md @@ -0,0 +1,6 @@ +alias:: docs + +- Current development version: + id:: 655326e4-51ca-4fc4-92cf-a6d058022aef +- Latest stable release: + id:: 655326f7-c17c-4ecf-84b1-ab38e62a8862 \ No newline at end of file diff --git a/notes/pages/EZDXF.md b/notes/pages/EZDXF.md index 0de09bde4..225b567b6 100644 --- a/notes/pages/EZDXF.md +++ b/notes/pages/EZDXF.md @@ -1,7 +1,7 @@ - A Python interface to [[DXF]] - - create new [[DXF]] files - - read/modify/write existing [[DXF]] files - - supported [[DXF]] versions + - create new DXF files + - read/modify/write existing DXF files + - supported DXF versions - R12 - R2000 - R2004 @@ -19,26 +19,23 @@ - - Source Code Repositiory id:: 654fc81e-e026-46ab-ac63-e6c32c90711c - - https://github.com/mozman/ezdxf + - id:: 654fc842-3cb5-4081-a70c-0d83fa56b953 - -- Documentation - - current development version +- [[Documentation]] + - ((655326e4-51ca-4fc4-92cf-a6d058022aef)) id:: 654fc722-2018-4a67-a390-6e53bee15db9 - - https://ezdxf.mozman.at/docs/ - - latest stable release - id:: 654fc731-f2a4-4bff-b49b-7deef073f7c7 - - https://ezdxf.readthedocs.io/ + - ((655326f7-c17c-4ecf-84b1-ab38e62a8862)) - - Ask Questions - in the [discussion forum](https://github.com/mozman/ezdxf/discussions) on Github - tag questions on [[Stackoverflow]] with `ezdxf` or `dxf` - - Report Errors - - https://github.com/mozman/ezdxf/issues + - - - Project Landing Page - - https://ezdxf.mozman.at + - - - # Further Reading - [[RELEASE NOTES]] diff --git a/notes/pages/HEADER.md b/notes/pages/HEADER.md new file mode 100644 index 000000000..a571d7634 --- /dev/null +++ b/notes/pages/HEADER.md @@ -0,0 +1 @@ +- [DXF Reference](https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-A85E8E67-27CD-4C59-BE61-4DC9FADBE74A) for the HEADER section \ No newline at end of file diff --git a/notes/pages/Hatch pattern and DXF codes.md b/notes/pages/Hatch pattern and DXF codes.md new file mode 100644 index 000000000..b68e4f33e --- /dev/null +++ b/notes/pages/Hatch pattern and DXF codes.md @@ -0,0 +1,22 @@ +- [[DXF Internals]] +- By Gopinath Taget +- Source: +- You might wonder what the correlation is between the definition file of a hatch pattern("acad.pat", "cadiso.pat") and the DXF codes of [[HATCH]] entity. +- The following is dxf code for pattern data: + - ``` + 53 Pattern line angle + 43 Pattern line base point, X component + 44 Pattern line base point, Y component + 45 Pattern line offset, X component + 46 Pattern line offset, Y component + 79 Number of dash length items + 49 Dash length (multiple entries) + ``` +- But you might observe that the values of the pattern in the DXF is not always the same as they are defined in the PAT file. +- This is because the pattern values like base point and offset are transformed by parameters like pattern angle. +- For instance: + - Pattern line offset, X and Y component : + - Take the values from the pattern file and rotate them around the z-axis with the pattern angle and you will be able to figure out the value written in the DXF file. + - For example, from AR-CONC in acadiso.pat, the x and y offset is 104.896, -149.807. + - Draw a line from 0,0, to 104.896,-149.807 and rotate it about 50 degrees. List its values and you will see that the line is located at 182.185,-15.9391,0. + - The base point for rotation is 0,0. If you use the offset value from DXF file 7.172601826007534,-0.6275213498259511 to draw a line starting at 0,0, you will see this line laps over the line starting at 0,0 and ending at 182.185,-15.9391. \ No newline at end of file diff --git a/notes/pages/Line Cap- and Join Styles.md b/notes/pages/Line Cap- and Join Styles.md new file mode 100644 index 000000000..68dbcc960 --- /dev/null +++ b/notes/pages/Line Cap- and Join Styles.md @@ -0,0 +1,63 @@ +## [[DXF]] + - [[DXF Internals]] + - The line cap- and join style is not stored in the DXF entities itself! + - [[BricsCAD]] does not support the ENDCAPS and JOINSTYLE settings and always uses round caps and round join style. + - [[CTB]] files define line cap- and join styles: + - END_STYLE_BUTT = 0 + - END_STYLE_SQUARE = 1 + - END_STYLE_ROUND = 2 + - END_STYLE_DIAMOND = 3 ??? + - END_STYLE_OBJECT = 4 + - JOIN_STYLE_MITER = 0 + - JOIN_STYLE_BEVEL = 1 + - JOIN_STYLE_ROUND = 2 + - JOIN_STYLE_DIAMOND = 3 ??? + - JOIN_STYLE_OBJECT = 5 + - [[HEADER]] Section + - HEADER Var [[$ENDCAPS]] + - Lineweight endcaps setting for **new** objects: + - 0 = None (butt) + - 1 = Round + - 2 = Angle ??? + - 3 = Square + - HEADER Var [[$JOINSTYLE]] + - Lineweight joint setting for **new** objects: + - 0 = None + - 1 = Round + - 2 = Angle (bevel or miter?) + - 3 = Flat (bevel or miter?) + - +- ## [[Matplotlib]] + - + - [CapStyle enum](https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.CapStyle) + - ![ztc5ooil.bmp](../assets/ztc5ooil_1700071777137_0.bmp) + - [JoinStyle enum](https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.JoinStyle) + - ![rsqp87hf.bmp](../assets/rsqp87hf_1700071950990_0.bmp){:height 408, :width 500} + - +- ## [[PySide]] and [[PyQt]] + - [Qt.PenCapStyle](https://doc-snapshots.qt.io/qt6-dev/qt.html#PenCapStyle-enum) + - `Qt.FlatCap (butt)` + - `Qt.SquareCap` + - `Qt.RoundCap` + - [Ot.PenJoinStyle](https://doc-snapshots.qt.io/qt6-dev/qt.html#PenJoinStyle-enum) + - `Qt.MiterJoin` + - The outer edges of the lines are extended to meet at an angle, + and this area is filled. + - `Qt.BevelJoin` + - The triangular notch between the two lines is filled. + - `Qt.RoundJoin` + - A circular arc between the two lines is filled. + - `Qt.SvgMiterJoin` + - A miter join corresponding to the definition of a miter join in the SVG 1.2 Tiny specification. + - +- ## [[SVG]] + - [StrokeLinecapProperty](https://www.w3.org/TR/SVG2/painting.html#StrokeLinecapProperty) + - `butt` + - `round` + - `square` + - [StrokeLinejoinProperty](https://www.w3.org/TR/SVG2/painting.html#StrokeLinejoinProperty) + - `miter` + - `miter-clip` + - `round` + - `bevel` + - `arcs` \ No newline at end of file diff --git a/notes/pages/Line Width in Pixels.md b/notes/pages/Line Width in Pixels.md new file mode 100644 index 000000000..1fef6d0df --- /dev/null +++ b/notes/pages/Line Width in Pixels.md @@ -0,0 +1,2 @@ +- [lineweights.ods](../assets/lineweights_1700073572548_0.ods) +- ![image.png](../assets/image_1700073536237_0.png) \ No newline at end of file diff --git a/notes/pages/MText format codes.md b/notes/pages/MText format codes.md new file mode 100644 index 000000000..89c2c258c --- /dev/null +++ b/notes/pages/MText format codes.md @@ -0,0 +1,42 @@ +- Source: +- [[DXF Internals]] +- The inline format codes of MTEXT looks like this: + - ``` + \A1;\fAIGDT|b0|i0;\H2.5000;\ln\fArial|b0|i0;\H2.5000;68{\H1.3;\S+0,8^+0,1;} + ``` +- ## Understanding each format code: + - \\f = Font file name, in this example it is AIGDT + - AIGDT stands for Autodesk Inventor Geomertic Dimension and Tolerance font file. + - codes starting with pipe are generally displays the traits of font. + - b tells ‘bold’ where 0 is off,and 1 is on. + - i tells ‘italic’ where 0 is off and 1 is on. + - c tells ‘code page’ followed by code page number for example |c238 + - p  tells ‘pitch; followed by number for example |p10 +- \\L    Start underline +- \\l    Stop underline +- \\O    Start overstrike +- \\o    Stop overstrike +- \\K    Start strike-through +- \\P    New paragraph (new line) +- \\pxi    Control codes for bullets, numbered paragraphs and columns +- \\X    Paragraph wrap on the dimension line (only in dimensions) +- \\Q    Slanting (obliquing) text by angle - e.g. \\Q30; +- \\H    Text height - e.g. \\H3x or \\H2.500 +- \\W    Text width - e.g. \W0.8x +- \\S     Stacking Fractions +- \\A   Alignment + - \\A0; = bottom + - \\A1; = center + - \A2; = top +- \\C  Color change + - \\C1; = red + - \\C2; = yellow + - \\C3; = green + - \\C4; = cyan + - \\C5; = blue + - \\C6; = magenta + - \\C7; = white +- \\T  Tracking, char.spacing - e.g. \\T2; +- \\~  Non-wrapping space, hard space +- {} - Braces - define the text area influenced by the code +- \\  Escape character - e.g. \\\\ = "\\", \\{ = "{" \ No newline at end of file