Replies: 1 comment 1 reply
-
Sorry, that's certainly not us. Someone else is abusing our name. Look for some dwg library with dwglib_initialize(). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, this is a program I found on the Internet. It can read the actual name of the anonymous block, but I don't have that library. Where can I find it? Thank you all for your help.
Here are the programs I found:
#include <stdio.h>
#include <libredwg/libredwg.h>
void print_block_names(DWG_BlockRecordHandle blockRecord) {
DWG_BlockHandle block = dwg_block_open(blockRecord);
if (block != NULL) {
**const char blockName = dwg_block_name(block);
const char blockRealName = dwg_block_real_name(block);
}
int main(int argc, char *argv[]) {
if (argc != 2) {
printf("Usage: %s <input.dwg>\n", argv[0]);
return 1;
}
}
Beta Was this translation helpful? Give feedback.
All reactions