How to set xref for new layers #614
-
Excuse me, I found xref is empty after creating a new layer, and then I used dwg_add_handleref function is assigned, but it is not known what value is passed in for the corresponding parameter of the function. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I don't think we do have an example yet of a layer->xref in the wild. You might need to create one, and look at the log. |
Beta Was this translation helpful? Give feedback.
-
unsigned long absref = dwg.object[dwg.num_objects -1].handle.value + 1; |
Beta Was this translation helpful? Give feedback.
I don't think we do have an example yet of a layer->xref in the wild. You might need to create one, and look at the log.
It's a type 5 handle to an external XREF block. (blkisxref). See spec.h