Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read the Dwg_Entity_LINE: layer and ltype? #903

Closed
iisaxin opened this issue Dec 25, 2023 · 1 comment
Closed

How to read the Dwg_Entity_LINE: layer and ltype? #903

iisaxin opened this issue Dec 25, 2023 · 1 comment

Comments

@iisaxin
Copy link

iisaxin commented Dec 25, 2023

Hello everyone, thanks for the author's contribution, let me have the opportunity to use libredwg in my work, now I encounter a problem, such as I read the Dwg_Entity_LINE, insert points I can easily get, but for example, how to obtain the "layer" and "ltype" but no idea, do you have any relevant routines? thanks

for (i = 0; i < dwg.num_objects; i++)
{
switch (dwg.object[i].fixedtype)
{
case DWG_TYPE_LINE:
{line = dwg.object[i].tio.entity->tio.LINE;
color=dwg.object[i].tio.entity->color;
//layer=??
//ltype=??

@rurban
Copy link
Contributor

rurban commented Dec 25, 2023

Please move that to Discussions. Not an issue

@rurban rurban closed this as completed Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants