Lightweight DWG Parsing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We provide numerous DWG files with our product that define blocks. By default, these are all layer 0 / BYBLOCK, with the actual colour used when displaying being defined in a database (amongst other things).
However, for if a block has no BYBLOCK elements, the colour in the database is irrelevant - the block will show with the predefined colours (leaving aside BYLAYER for now). So, in our database editor (a standalone program), it would be useful to disable the colour selection in this case. Outside of some invented info encoding in (say) the filename, the only way to know whether to do this would be to parse the block-definition DWG to look for BYBLOCK elements.
Does anyone have any experience using the RealDWG SDK? Would it add a lot of 'bloat' to my DB editor to make it capable of reading the DWG files?