Login  Register

Re: Incorrect pen results from the entitycontainer

Posted by sand1024 on Feb 01, 2025; 8:23am
URL: https://forum.librecad.org/Incorrect-pen-results-from-the-entitycontainer-tp5726283p5726293.html

At the moment I have assigned both entity-name (DXF -1), parent-softid name (DXF 330), and the entity-id (DXF 5) group codes to the LC entity id.
I don't know how to get the correct entity-name (DXF -1) parent-softid name (DXF 330).
Well, as for codes - the good source for supported codes (how they are parsed/stored) - it's just the source. Most of the processing is here - libdxfrw.cpp, drw_objects.cpp, drw_entities.cpp.

Please also mind that some codes might be not directly exposed by entity. For example, internal DXF code that defines parent may be just parsed and used for adding entity to the necessary container.  So the code is disappeared after this and relating exists just as a reference between object instances (until further writing, of course, where the relation will be stored via the code).

As for entity-name (DXF -1).. I'm not sure that one is supported by LC at all, at least I cant' see parsing of such code.

It might be that this is AutoCAD-specific value.