Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

way to retrive current block annotative scale in a attribute placeholder field?

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
boicottms
1185 Views, 10 Replies

way to retrive current block annotative scale in a attribute placeholder field?

I wish to place an annotative scalebar block in the model view wich changes the values based on the viewport's annotative scale, so I need to retrive the current block annotative scale in its attribute placeholder field.

Such a property doesn' shows in the available block's placeholder properties.

Any way to do it?

Thank you

10 REPLIES 10
Message 2 of 11
Alfred.NESWADBA
in reply to: boicottms

Hi,

 

>> the values based on the viewport's annotative scale,

Why not placing a block in your layout, beside or under your viewport, showing the custom scale? (like shown in the attached dwg-file)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 11
pendean
in reply to: boicottms

>>>...I wish to place an annotative scalebar block...<<<
The dynamic blocks forum has plenty of examples you can use now, help yourself, they can also help you build your own if you desire https://forums.autodesk.com/t5/dynamic-blocks-forum/bd-p/154

Message 4 of 11
vinodkl
in reply to: boicottms

You can use the system variable "CANNOSCALE" (current annotation scale) field.

canno.PNG

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)



Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 5 of 11
Alfred.NESWADBA
in reply to: vinodkl

Hi @vinodkl ,

 

have you tried 2 viewports inside one layout, both having the same block visible, and both viewports have different scales ... does that block-attribute really show different values (correct values for each viewport) when plotting/publishing?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 6 of 11
vinodkl
in reply to: Alfred.NESWADBA

Hi,

 

I had not tried it with two viewport though, but still I tested it out as you asked me for and it does display the different annotative scale value when plotted/published but it does require regen every time we switch between layouts as the annotative objects don't show correct annotative scale values .

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)



Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 7 of 11
Alfred.NESWADBA
in reply to: vinodkl

Hi,

 

>> but it does require regen every time we switch between layouts

How about having 2 viewports on the same layout?

Would be great if that would work.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 8 of 11
vinodkl
in reply to: Alfred.NESWADBA

Hi,

 

With two viewports created both show the same scale and when enter modelspace of one viewport and regen the object in both the viewport changes scale.

But when we plotted they show the scale which is set to them.

first one is set at 1/2" and second one at 1/8"first one is set at 1/2" and second one at 1/8"when plottedwhen plotted

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)



Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 9 of 11
Alfred.NESWADBA
in reply to: vinodkl

Hi,

 

great, good job then done by Autodesk 😉

Thanks for testing and feedback!

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 10 of 11
boicottms
in reply to: Alfred.NESWADBA

Thank you,

The idea was to place only one block in model space and let it adapt to different viewports

Message 11 of 11
boicottms
in reply to: vinodkl

Thank you all,

So I made the attached annotative block, and it works when printing (not on screen, where it just shows the last used scale) BUT it does not only need a REGENALL, but also an ATTSYNC for each vewport (otherwise the attributes don't move to the expected position when the annotative poperty autoamtically scales the block) - so I womnder if it is any useful.

Annotazione 2019-12-09 131910.jpg

 

The values are also auto-updating:

Annotazione 2019-12-09 132215.jpg

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report