Repository navigation
-
Table picture row and column overrides - The picture block of a
table takes a cell's text height, margins, and alignment from the cell's
own style, then its column's, then its row's, with the table style as the
fallback. A margin override of zero stays zero. -
Display compiler and renderer (
render, featurerender) -compile
turns aCadDocumentinto a camera-independentScene, resolving visual
style, layer colour, linetype, and block inserts. Every built-in AutoCAD
visual style has a recipe inStandardVisualStyle; viewport render modes
and namedVisualStyleobjects select them.Rendererdraws the scene
with wgpu, natively and in WebAssembly. ACIS solids, regions, bodies, and
surfaces are faceted from their B-rep, including trimmed curved surfaces.
Text whose SHX or TrueType file is missing is drawn with the built-in
single-stroke fontacadrust.shx(assets/fonts). -
GLB export (
io::export::gltf, featureexport) -export_document
writes the lit fills of a compiled scene (solids, regions, bodies,
surfaces, meshes, polyface and polygon meshes) as binary glTF 2.0: one
material per layer, colour, and opacity, metre units, Y up, box-projected
UVs, and anExportReportof every dropped or fallback entity.
GlbOptions::material_xdatanames materials after a string in the given
XDATA applications (extras.xdataMaterial,extras.xdataMaterialSource).
export_document_by_entityandassemble_glbbuild node trees, and
splitcuts a fused solid into members along planes. -
dwg2glb,render_view, andsolidtoglbexamples -dwg2glb
converts a drawing or a folder of drawings to GLB with a JSON report per
drawing;render_viewis a native pan-and-zoom viewer with entity
picking;solidtoglbassembles a hardware library's part drawings into
one GLB per product variant, with optional member split rules. -
Browser viewer (
web/) - A WebAssembly harness for the renderer that
uses the same compile and draw path as the native viewer. It is not
published. -
Interchange scene (
io::interchange, featureimport) - A neutral
mesh scene (named nodes in a hierarchy, shared meshes with normals, UVs,
and material groups, PBR materials, unit and up axis) read straight from
STL, OBJ (+MTL), FBX, COLLADA, and glTF / GLB, without aCadDocumentin
between, and written to GLB, glTF (+.bin), OBJ (+MTL), binary STL,
COLLADA, and ASCII FBX 7.4. Withexport, DWG / DXF go through the GLB
export, one node per block insert and one per layer.
scene_to_documentbuilds aCadDocumentfrom a scene. -
meshconvexample - Any of the formats above to any writable one,
with--units,--up,--tolerance,--progress, and a JSON report. -
export_document_parts- One compile, one GLB per top-level entity,
plus the drawing's skipped and fallback entities. -
Fix: a plot style's lineweight number picks the table entry before it -
PlotStyleTable::resolve_lineweightread entry N of the lineweight list for a style numbered N. The plot style editor lists "Use object lineweight" first and the table's widths after it, so style N now reads entry N - 1: style 1 gives the first width, the last width is reachable, and 0, 255 and a number past the list still keep the object's lineweight. -
Survey figures carry their elevation range and traverse - A survey
figure's (AECC_SVFIGURE) graphic-image section draws the figure's XY
bounding box as a closed rectangle at two elevations (two five-point
rings and four vertical corner connectors); the ring elevations are the
figure's own.SurveyFigureGeometrycarriesmin_elevation/
max_elevation— on the tutorials' survey drawings the live
application'sMinElevation/MaxElevationbit for bit — and the
verticesof the traverse cache the class body ends with (an 8-bit
count word, then count x (RD x, RD y, RD z) at a 66-bit stride,
right-anchored 17 bits before the class body's end), within the shared
solved-point tolerance of the application'sBaseCurve(x/y a display
cache ~250 ulps off, z exact; the arc parameters are not stored, so
curved lengths stay the survey engine's). -
DXF writer looks extension dictionaries up in linear time - Each table
record that names no extension dictionary had its owner looked up by walking
every object of the document, so writing a DXF was quadratic in block records
times objects (a 32 MB DWG with 16 027 block records took 11.3 s to write).
The writer now gathers the dictionaries' owners once per write
(CadDocument::owned_dictionaries);extension_dictionary_handleis
unchanged. -
Extended dimensions keep AcDbDimension base groups - The
ARC_DIMENSION and LARGE_RADIAL_DIMENSION reader had no arms for the
AcDbDimension insertion point (12), horizontal direction (51) and
flip-arrow (74/75) groups, so a DXF read dropped them — including on
files the library itself writes. -
IMAGE clip mode in DXF - The DXF writer never emitted group 290,
so an image clipped to the inside of its boundary reverted to clipping
the outside on every save.290(0 = outside, 1 = inside) is now
written after the clip boundary vertices for R2010 (AC1024) and later,
matching the version gate on the DWG stream's clip-inverted bit. -
MULTILEADER text attachment point - The field (DXF group 179 on the
entity, group 171 in the context data) holds the MTEXT attachment point,
values 1 to 9. It was modeled as left/center/right only, so a legitimate
value such as 5 (middle center, which AutoCAD writes) read with an
unknown-leader-enumwarning and round-tripped as 2.
TextAttachmentPointTypenow coversTopLefttoBottomRight; the former
Left/Center/Rightvariants areTopLeft/TopCenter/TopRight. -
DXF-format proxy entities - An
ACAD_PROXY_ENTITYwhose original
data format is DXF (70 1) carries the entity's own DXF groups after
the header. The reader kept only binary data and let those groups' own
70/90overwrite the header; the writer then emitted70 0with
binary93/161/310data, so a DXF round trip lost the data. The
groups are now kept verbatim (ProxyEntityData::dxf_data) and written
back as they are, asACAD_PROXY_OBJECTalready does. -
AutoCAD 2010 view-rep standard -
ACDBVIEWREPSTANDARDstores five
values before R2013 and six from R2013; the DWG reader and writer now
use the count the drawing's version stores. -
Section size limit as a read option -
DwgReadOptions::max_section_bytes(with_max_section_bytes) replaces
the fixed 1 GiB bound on one decompressed section. Large drawings can
exceed it: a 424 MB AC1032 file with 10,000 proxy entities has an
AcDb:AcDbObjectssection of about 1.25 GB and read as an empty
document (diagnosticobjects-extract-failed). The default stays
1 GiB;max_decompressed_bytesstill caps the whole read. -
3DSOLID wire transform scale - The scale in a wire's transform is
one BD (uniform scale), not a 3BD. Wireframes whose wires carry a
transform now decode in step with the stream, where reading the scale
as three values pushed every later field out of place.Wire::scale
keeps its three components, all equal when read from a DWG. -
Civil 3D station equations, design speeds and sites -
ArchEntityData::alignment_station_equationsand
alignment_design_speedsread an alignment's equations (raw station,
back, ahead, increasing) and speeds;display_stationgives the
station Civil 3D shows past the equations.ArchObject::topologyreads
the graph a site container or alignment companion keeps (edges through
nodes with the faces on both sides);Topology::face_polylinesgives a
parcel's boundary. -
Civil 3D offset and connected alignments - Offset alignments draw
their spirals (the parent spiral moved sideways over the part it
follows) and their widening transitions (curve – line – curve, curve –
reverse curve, curve – curve – reverse curve); connected alignments draw
their three-centered arcs. -
Civil 3D profiles - Layout profiles read every entity Civil 3D
writes: symmetric parabolas by length or K, circular curves by length,
radius or through a point, asymmetric parabolas, parabolas through three
points, between two points with K, radius or a grade, parabolas hanging
from the tangent before, tangents leaving a curve towards a point, and
free tangents between two curves.ProfilePiecegainsCircularand
AsymmetricParabola. -
Civil 3D alignment elements - Alignments read more of the element
records Civil 3D 2018 and later write: the first spiral of a group kept
as separate elements, headers with any parameter-lock byte, compound and
placed spirals, free spirals and spiral-spiral groups between lines,
spiral-curve groups ending at a point, spiral-line and line-spiral
groups, spiral-spiral and spiral-line-spiral groups between two curves,
reverse curves with spirals through one or two points, long
spiral-curve-spiral-curve-spiral groups from their TS, fillets through a
point, curves ending at a point or along a direction, lines to or from a
point, and open curves by their centre. Groups between curves solve
where they leave the first curve.FreeSpiralLineSpiralis now
FreeSpiralSpiralCurves { ratio };Circlecarriesclosedand
clockwise. -
Civil 3D pipe networks -
ArchEntityData::pipe_endsreads a pipe's
start and end,structure_positiona structure's insertion point, and
ArchObject::network_part_fieldsa part definition's number fields
(inner diameter, wall thickness, structure diameter, ...) with their
units, in drawings from Civil 3D 2013 and 2018 on. -
Civil 3D alignments - Masking regions read with any number of
regions (the list opens with threeBL 2before its count). Free lines
between two fixed arcs are solved tangent to both, ending the first arc
and starting the second where the line meets them; composite solutions
keep their element joins, so each piece takes its own style component. -
Civil 3D spirals and curves - Spiral records carry their shape:
SpiralShape(clothoid, Bloss, sinusoidal, biquadratic, cubic parabola,
Japanese cubic, sine half-wave) onSpiralIn/SpiralOut, each drawn
with its own geometry. Alignments read whole circles (by centre and
radius, or centre and start point) and arcs from a stored point onto the
next line. -
Civil 3D 2013 drawings - Style display components, assembly
attachments and alignment elements read in drawings Civil 3D 2013 wrote:
their component and attachment tags carry 70 where later releases carry
80, some alignments open each element withBS 0, and subassemblies and
assemblies keep one null handle fewer before the assembly and baseline
style. Alignments solve arcs of a given radius fitted between a line and
a fixed arc, arcs that leave a line and end at a stored point, lines
through two stored points, and elements stored as a chain of points.
Curves are walked with the exact chord of each step, so small radii no
longer drift off their end point.corridor_baselinesreturns a
corridor's feature line groups per baseline, and
corridor_feature_line_groupsnow covers every baseline instead of the
first. -
Civil 3D labels -
label_stationskeeps a label at station 0, which
the record stores in two bits, and negative stations before it, so a
data band labels the alignment start and stations before it. Text
components written without the component marker read their x/y offsets
and gap too. -
Civil 3D styles -
ArchObject::display_componentsreads a Civil 3D
style's display components (visibility, color, layer, linetype,
lineweight, linetype scale) in the order the style class defines them,
andsurface_contour_intervalsa surface style's minor and major contour
intervals.TinSurface::boundaryandTinSurface::contoursdraw a
surface's outline and contours,alignment_piecesgives an alignment's
lines, curves and spirals, andprofile_piecesa profile's tangents and
vertical curves, so each can take its own style component.
alignment_masked_rangesgives the station ranges an alignment hides,
profile_view_axesa profile view style's axis intervals, tick sizes and
text heights,markera marker style's point shape and size,
label_tick/label_linea label's tick block and leader line,
band_heighta data band's height,code_set/code_set_defaultsa code
set's styles, andcorridor_feature_line_groupsa corridor's feature lines
grouped by region.LabelTextgains the text component's attachment,
rotation, x/y offsets, gap and anchor point; station formats add the
9+99.99and whole-station options. Alignment geometry points keep every
join inside compound pieces and are named BP, EP, PI, PCC, PRC and SPI. -
Civil 3D classes -
classes::civilnames theAECC_*classes:
kind_of/ArchEntityData::civil_kindgive alignments, profiles, profile
views, TIN surfaces, corridors, assemblies, subassemblies, parcels, sample
line groups and labels;object_kind_of/ArchObject::civil_kindsort the
dictionary objects into styles, label styles, display representations,
settings and profile elements.ArchEntityData::tin_surfacereads a TIN
surface's stored triangulation (points, triangles, neighbors, hidden flags),
which the drawing's proxy graphics reduce to a bounding box.
alignment_elements/alignment_polylinesread an alignment's design
elements and solve its centerline exactly: fixed, floating and free lines
and arcs, spirals, free and floating spiral-curve(-spiral) groups, free
spirals, free spiral-line-spirals, spiral-spiral-curves ending at their
stored point, and reverse spiral-curve-spiral pairs. An element this crate
cannot decode ends the polyline instead of being guessed.
profile_polylinesreads a profile's station/elevation tangents and joins
them with their vertical curves,profile_view_framea profile view's
placement, ranges and vertical scale, andcorridor_feature_linesa
corridor's baseline and feature lines with their stations.
alignment_start_stationandalignment_geometry_points(POB, TS, SC, PC,
...) give stations along the solved centerline.profile_pvislists
a design profile's PVIs and vertical curve lengths,label_stationsthe
stations a label group places labels at,label_anchora single label's
position, andsample_linesthe stations and swath of a sample line group.
ArchObject::label_textreads a label text component (its format with
static text, property fields and their precision/station/percent options,
text height and offset;parse_formatandLabelPart::format_value
render it),ArchObject::inline_stringsthe formats a style stores, and
sample_line_name_templatea sample line group's naming template.
subassembly_shapereads the points and links a subassembly last
generated,assembly_layoutan assembly's baseline point and which parent
point each subassembly hangs from, andsubassembly_assemblythe assembly
a subassembly belongs to.
classes::map3dnames the Map 3D display-management objects. The records
stay in their containers and keep their native bodies on save. -
Rotation of annotative block and text representations in DXF - Group 50
of a block or text object context is in degrees, but it was read and written
as is while the rotation in memory is in radians, as DWG stores it and as
Insert::rotationand the attribute representation hold it. A symbol rotated
30 degrees came back as 30 radians. A representation that an earlier version
wrote after editing holds radians in group 50 and now reads as degrees. -
Custom drawing property fields -
%<\AcVar CustomDP.<Name>>%, the code
AutoCAD writes for a custom drawing property, resolves to the property's
stored text verbatim (name matched case-insensitively). It used to fall
through to the system-variable lookup, which reformatted a value such as
12,5as the point12.000000, 5.000000, 0.000000. An empty value shows
----; a missing property stays unresolved. -
Classes of added entities - Saving as DWG now declares the class of
every class-registered entity that the source file's class table lacks
(MULTILEADER, WIPEOUT, ACAD_TABLE, IMAGE, ARC_DIMENSION, ...), as it already
did for objects. Such an entity drawn into a file that never held one made
AutoCAD refuse to open the drawing. -
Attributed MINSERT arrays in DWG 2004+ - The INSERT/MINSERT reader now
consumes the owned-object count that follows the attributes flag from R2004
on. A MINSERT with attributes previously read its column count, row count
and spacings one field early (for example 2 x 3 at 15/10 came back as
1 x 2 at 1.0/~0), and saving the drawing kept the wrong array.