The CLASSES section in DXF files holds the information for application-defined classes whose instances appear in
Layout objects. As usual package user there is no need to bother about CLASSES.
DXF Internals: CLASSES Section
- class ezdxf.sections.classes.ClassesSection¶
Storage of all
DXFClassobjects, they are not stored in the entities database, because CLASS has no handle attribute.
- register(classes: Iterable[DXFClass])¶
- add_class(name: str)¶
Register a known class by name.
- get(name: str) DXFClass ¶
Returns the first class matching name.
Storage key is the
(name, cpp_class_name)tuple, because there are some classes with the same
- add_required_classes(name: str) DXFClass ¶
Add all required CLASS definitions for dxfversion.
- update_instance_counters() None ¶
Update CLASS instance counter for all registered classes, requires DXF R2004+.
- class ezdxf.entities.DXFClass¶
Information about application-defined classes.
Class DXF record name.
C++ class name. Used to bind with software that defines object class behavior.
Application name. Posted in Alert box when a class definition listed in this section is not currently loaded.
Proxy capabilities flag
No operations allowed (0)
Erase allowed (0x1)
Transform allowed (0x2)
Color change allowed (0x4)
Layer change allowed (0x8)
Linetype change allowed (0x10)
Linetype scale change allowed (0x20)
Visibility change allowed (0x40)
Cloning allowed (0x80)
Lineweight change allowed (0x100)
Plot Style Name change allowed (0x200)
All operations except cloning allowed (0x37F)
All operations allowed (0x3FF)
Disables proxy warning dialog (0x400)
R13 format proxy (0x8000)
Instance count for a custom class.
1if class was not loaded when this DXF file was created, and
1if class was derived from the
DXFGraphicclass and can reside in layouts. If
0, instances may appear only in the OBJECTS section.
Unique name as