Supported file formats for xref and insert

Supported file formats for xref and insert

Anonymous
Not applicable
704 Views
3 Replies
Message 1 of 4

Supported file formats for xref and insert

Anonymous
Not applicable

Hi,

Is there any service or way to find out if the image (any extension) getting imported by user is supported by Autocad to include in dwg file as a reference or attachment.

 

For example:

User tries to insert abc.xyz" file, (extension is xyz), I need to find out if this type of file can be inserted in Autocad.

 

Regards,

Hemaraju

0 Likes
705 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend
HELP will tell you what formats are supported as xrefs or imports, explore there.
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Dean Saadallah,

 

Thanks for the prompt reply 🙂

As I mentioned, I wanted to find out if the file type is supported or not in C#.

For example, if user tries to insert/import a bmp file, I want to check if that type of file can be imported or not.

Currently we are maintaining the supported file formats as a hard coded string in the code. We want to get rid of that.

 

string SupportedImageExtPatterns = "^(.BMP|.GIF|.PNG|.JPE?G)$";

 

Any suggestion towards this is a great help.

Will be waiting for your reply.

 

Regards,

Hemaraju

 

0 Likes
Message 4 of 4

Patchy
Mentor
Mentor

This group hardly do programming, you have to ask your question here:

 

http://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1

 

 

0 Likes