Announcements
Due to scheduled maintenance, the Autodesk Community will be inaccessible from 10:00PM PDT on Oct 16th for approximately 1 hour. We appreciate your patience during this time.
.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check if there are any unresolved references

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
smx_khang
415 Views, 4 Replies

Check if there are any unresolved references

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

 

 

 

4 REPLIES 4
Message 2 of 5
_gile
in reply to: smx_khang

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

Message 3 of 5
smx_khang
in reply to: _gile

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

Message 4 of 5
_gile
in reply to: smx_khang

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
in reply to: _gile

Thank you @_gile 

They are really useful tools!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report