How to read .dim (Dimension style file) in C#.Net?

How to read .dim (Dimension style file) in C#.Net?

Anonymous
Not applicable
1,014 Views
3 Replies
Message 1 of 4

How to read .dim (Dimension style file) in C#.Net?

Anonymous
Not applicable

How to read .dim (Dimension style file) in C#.Net?

.dim file is created using DIMEX Express tool in AutoCAD 2014.

0 Likes
1,015 Views
3 Replies
Replies (3)
Message 2 of 4

Ed__Jobe
Mentor
Mentor

You can open it in Notepad, so handle it like any *.txt file. Here's an example.

https://forums.autodesk.com/t5/net/reading-data-from-a-txt-file-using-c/m-p/6005943#M47299

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi,

 

Thanks for that solution but,
Isn't there any AutoCAD api to read .dim file like we read .dwg file using  'Autodesk.AutoCAD.DatabaseServices.Database.ReadDwgFile' method?

 

 

 

Thanks,

Kapil Hedaoo

0 Likes
Message 4 of 4

Ed__Jobe
Mentor
Mentor

DIMIM and DIMEX are Express Tools. They are provided As-Is and are not considered part of AutoCAD. They are just extra productivity tools. Sometimes ET's get 'upgraded' and become part of AutoCAD, like Revcloud and Multileaders. When they do, they get an api created.

 

That said, most ET's are lisp programs that you can adapt or hook into. However, DIMIM and DIMEX are defined in dimsio.arx, so you don't have access to them. Therefore, you're on your own.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes