.NET

Reply
Valued Contributor
Ertqwa
Posts: 91
Registered: ‎10-03-2011
Message 1 of 6 (274 Views)

Annotation scale

274 Views, 5 Replies
06-14-2013 02:10 PM

Hello,

 

If I have an annotative object, with multiple annotative scales, but not the current one, AutoCAD will display it picking one of its annotative scales.

How do I find out which annotative scale AutoCAD is using to display an annotative object that has not the current annotation scale?

 

Thank you.

ADN Support Specialist
augusto.goncalves
Posts: 341
Registered: ‎04-30-2009
Message 2 of 6 (231 Views)

Re: Annotation scale

06-18-2013 09:33 AM in reply to: Ertqwa

Maybe this blog post will answer you: http://adndevblog.typepad.com/autocad/2012/05/annotation-scale-being-used-in-model-space.html

Regards,



Augusto Goncalves
Autodesk Developer Network
Valued Contributor
Ertqwa
Posts: 91
Registered: ‎10-03-2011
Message 3 of 6 (203 Views)

Re: Annotation scale

06-22-2013 03:06 PM in reply to: augusto.goncalves

Hi,

 

That post doesn't answer my question, it shows how to get the current  annotation scale in modelspace.

 

Thank you for the reply.

ADN Support Specialist
Balaji_Ram
Posts: 692
Registered: ‎03-21-2011
Message 4 of 6 (187 Views)

Re: Annotation scale

06-24-2013 04:52 AM in reply to: Ertqwa

Hi,

 

There is no direct API to get the annotation scale that the entity is using.

 

As a workaround, you can try digging a little deep into the extension dictionary and getting it by looking for a DXF code 300. Using ArxDbg snoop tool, you can locate it.

 

I have shared a C++ code that does this which might be of some help to investigate this further.

 

I am having issues in uploading the zip file to this forum post. So I have shared it using dropbox :

https://www.dropbox.com/s/p8kjcm4l19r7iux/SampleCode.zip

 

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Valued Contributor
Ertqwa
Posts: 91
Registered: ‎10-03-2011
Message 5 of 6 (158 Views)

Re: Annotation scale

06-26-2013 09:53 PM in reply to: Balaji_Ram

Oh that is too bad. But good to know.

 

I'll look into your suggestion. The link did not work for me.

 

Thank you for the reply.

ADN Support Specialist
Balaji_Ram
Posts: 692
Registered: ‎03-21-2011
Message 6 of 6 (153 Views)

Re: Annotation scale

06-26-2013 10:28 PM in reply to: Ertqwa

Sorry, I might have removed it while clearing files from my dropbox folder.

 

Here is the link :

https://www.dropbox.com/s/8eodlfejmdzukvq/EntityAnnoScale.zip

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.