Access label content using .net

Access label content using .net

iwafb
Advisor Advisor
372 Views
4 Replies
Message 1 of 5

Access label content using .net

iwafb
Advisor
Advisor

Hi All,

 

Does anyone know how to access/manipulate the drawing labels using .net? Understand this can't be done with AS API, but apparently it's possible using Autocad API instead...

Would like to be able to select a label and read the tokens it contains...

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

Sebastian_Eiche
Mentor
Mentor

not sure waht you want to do, but I think this will be tricky. 

The labels are an AS object and as I know not readable (but I'm not sure 100%).
Maybe you describe a bit more, what is your target.


Sebastian Eiche
Application Engineer @Mensch und Maschine acadGraph

EESignature

If this information was helpful, please use the Accept as Solution function, this make it easier for other users

0 Likes
Message 3 of 5

bigcarl5000kg
Advisor
Advisor

The labels are proxy objects only, no properties via "LIST" command available, regardless of the object

 

bigcarl5000kg_0-1686909563699.png

 

+++ impossible immediately and miracles within 3 days +++
+++ the only constant is the change +++ stay tuned for more +++
+++ since 03/2023 is Advance Steel in maintenance mode, no further development +++
0 Likes
Message 4 of 5

iwafb
Advisor
Advisor

Thanks for your replies.

 

I had previously understood the same. That is, you can't dig into the label properties and manipulate the content. Apparently though, this is actually possible using ACAD api.

 

What I want to do is select a label and add content to it. For example quantity in assembly...

 

Ultimately, I want to select one label in a view. Automatically pick up all other labels in the same view that contain identical information. Delete all "identical" labels in that view. Modify the content of the original label.

Message 5 of 5

bigcarl5000kg
Advisor
Advisor

Hi @iwafb,

 

I think you need to be an magician, to solve this challenge 😁 ...  maybe Mr. @ChristianBlei can help you

+++ impossible immediately and miracles within 3 days +++
+++ the only constant is the change +++ stay tuned for more +++
+++ since 03/2023 is Advance Steel in maintenance mode, no further development +++
0 Likes