Check if there are any unresolved references

Check if there are any unresolved references

smx_khang
Contributor Contributor
749 Views
4 Replies
Message 1 of 5

Check if there are any unresolved references

smx_khang
Contributor
Contributor

Hello everyone, 

How do I check if there are any unresolved references in the drawing?
(A function similar to the AutoCAD built-in: see below image)

AutoCAD – Resolving unresolved reference files - 1.PNG

 

 

 

0 Likes
Accepted solutions (1)
750 Views
4 Replies
Replies (4)
Message 2 of 5

_gile
Consultant
Consultant

Hi,

You can iterate through the BlockTable and, foreach BlockTableRecord it contains, check for the values of th IsFromExternalReference and the XrefStatus properties (see the XrefStatus enum).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 5

smx_khang
Contributor
Contributor

Hi @_gile 

 

Thank you and sorry for my late response.

 

I successully checked xref of a dwg. But other xref types, for example: `UnderlayReference` or `RasterImage` does not represented as a BlockTableRecord.

How can I check these types of references? 

 

Best regards

0 Likes
Message 4 of 5

_gile
Consultant
Consultant
Accepted solution

Have a look at the UnderlayDefinition properties and RasterImageDef properties.

You should use a snoop tool such as MgdDbg or Inspector.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 5 of 5

smx_khang
Contributor
Contributor

Thank you @_gile 

They are really useful tools!

0 Likes