Author Topic: Associating a block to viewport scale  (Read 5372 times)

0 Members and 1 Guest are viewing this topic.

bdough15

  • Guest
Associating a block to viewport scale
« on: April 25, 2012, 11:14:53 AM »
I have had a request from an Engineer in my office to create a scale block that associates directly to the Viewport Scale.  That way we "never" have a problem with the scale block being incorrect again.  Our Current Scale Block is older and has been brought forward for years, it is a basic attributed block.  Does anyone have any suggestions as to how would create a block that would link directly to the viewport scale?

Jeff H

  • Needs a day job
  • Posts: 6050
Re: Associating a block to viewport scale
« Reply #1 on: April 25, 2012, 12:07:04 PM »
I have done through code where you create a scale block with visibility states to match different scales, and when the viewport is modified it.
 
This was just simple example http://www.theswamp.org/index.php?topic=38480.0

ronjonp

  • Needs a day job
  • Posts: 7056
Re: Associating a block to viewport scale
« Reply #2 on: April 25, 2012, 02:03:17 PM »
You can give this a try as well. Uses fields in an attributed block. The precision is controlled by the luprec variable.

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5327
  • Standby for witty remark...
Re: Associating a block to viewport scale
« Reply #3 on: April 25, 2012, 05:09:20 PM »
You can give this a try as well. Uses fields in an attributed block. The precision is controlled by the luprec variable.
Very nice.  :kewl:
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 7056
Re: Associating a block to viewport scale
« Reply #4 on: April 25, 2012, 10:19:05 PM »
Thanks Alan. It was fun to write ... I may even adapt it for my own use  :-)

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC

huiz

  • Swamp Rat
  • Posts: 845
  • Certified Prof C3D
Re: Associating a block to viewport scale
« Reply #5 on: April 26, 2012, 03:32:29 AM »
In Civil3D 2013 and Map3D 2013 there is standard functionality to have scale bars, but also north arrows chained to viewports.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

bdough15

  • Guest
Re: Associating a block to viewport scale
« Reply #6 on: April 26, 2012, 10:37:01 AM »
So then really I should just wait a few weeks and use the functionality in C3D 2013.  I think that is the best way to go, don't reinvent the wheel on a clients time.

ronjonp

  • Needs a day job
  • Posts: 7056
Re: Associating a block to viewport scale
« Reply #7 on: April 26, 2012, 11:09:13 AM »
So then really I should just wait a few weeks and use the functionality in C3D 2013.  I think that is the best way to go, don't reinvent the wheel on a clients time.

But you did not reinvent the wheel, I did  :roll: so no "clients" time has been used.  :-P I guess it will be a good tool for non Civil3D users.

Windows 10 x64 - AutoCAD /C3D 2020

Custom Build PC