Translator with Deepl API

Translator with Deepl API

a_dorsaz
Participant Participant
166 Views
2 Replies
Message 1 of 3

Translator with Deepl API

a_dorsaz
Participant
Participant

Hello !!!

Im a young civil draughtsman, I work in a bilingual company (French-German) so I tried to figure out how I could translate my plans easily and in the fastest way.
I decided to create a C+ library in Visual Studio and with the help of AI, I got smth pretty impressive.

I got a DLL ready to work, but with the only downside that it has to break the Mleaders in order to replace the text. Otherwise it works perfecly fine with the Mtexts

The objective would also be to make a great dictionnary of technic words for civil engineering, and those would be automatically used instead of Deepl translations,  to make it more specific.

Does someone know how to get into the Mleaders to get the text and replace it without breaking it using C+ ?£

I think this pluggin would be awesome to give a personnal good translation for every worker on the site


Have a good day everybody 😊

0 Likes
167 Views
2 Replies
Replies (2)
Message 2 of 3

Sea-Haven
Mentor
Mentor

If you look at the properties of a mleader they have one property "Textstring".  You should be able to get and put the textstring. I don't do C# stuff.

 

In lisp 2 lines

(setq obj (vlax-ename->vla-object (car (entsel "\nPick mleader "))))
(vlax-put obj 'textstring "This is now")

 

SeaHaven_0-1785816176192.png

 

0 Likes
Message 3 of 3

lauri_barnhart
Autodesk
Autodesk

Hello, @a_dorsaz.

 

Just following up to see if the information provided by Sea-Haven helped resolve your question. If it did, please consider clicking on the 'Accept Solution' button. If you need more clarity, please provide an update here.

 

Best,


Lauri | Community Manager

Let us know how we did on Trustpilot.

0 Likes