Find distance using APIs

Find distance using APIs

Anonymous
Not applicable
814 Views
4 Replies
Message 1 of 5

Find distance using APIs

Anonymous
Not applicable

How to find the distance between two points using visual studio c# APIs. 

 

Without installing AUTOCAD is there any possibility to find the distance of two endpoints using APIs.

My requirement is, I have a DWG file, read the points, and find the distance using APIs. without installing AutoCAD I have to achieve this using APIs

 

Please guide me on how to do this. Thanks in advance.

0 Likes
815 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

Hi,

 

C# is .NET and .NET forum is over here:

https://forums.autodesk.com/t5/net/bd-p/152

 

 

Without Autocad you don't have access to the content of DWT/DWG files, so you need

a library to read&write data from/to the files.

 

Autodesk offers REALdwg 

and without the blessing of Autodesk

there is a very good try to copy the realdwg.

Search for teigha oda

 

 

 

Sebastian

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you. Can we read/write data using libraries? If yes, what are the libraries and how can we use that to read dwg file. If you have any sample please give me.

 

I need a step by step implementation of this, please help me to resolve this.

 

Is there any option to calculate distance from dwg file or JSON file in CLOUD?

0 Likes
Message 4 of 5

cadffm
Consultant
Consultant

I think

linking to the right forum(.Net)

and posting a sample library (the most popular i guess, teigha from oda)

should be enough in this AutoCAD Forum for user questions.

(it isn't a programmer board, please follow my link above and start a new post there, AFTER you searched about your questions, thx.)

 

 

Sebastian

0 Likes
Message 5 of 5

lena.talkhina
Alumni
Alumni

Hello @Anonymous  and welcome to Autodesk Community!

 

Do you need me to move this thread to .NET forum? I am ready to help you.

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes