Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trying to return the scale of a drawing view...

135 views
Skip to first unread message

FOSW

unread,
Apr 9, 2007, 11:38:16 AM4/9/07
to
Hi All...

I am trying to create an automated note that returns the scale of the
drawing view that it is attached to.

I have made many notes in the past to return information such as part
number, material, etc
($PRPMODEL:"Description")

I can not find any link (in SolidWorks help or API) so the note can
display the scale of the view.

Can anyone help me with this?

fcsuper

unread,
Apr 9, 2007, 2:27:23 PM4/9/07
to

FOSW,

I believe this requires the use of a macro to add this value to an
annotation note attached to your view. I'm not sure if this is
available previous to 2007, but there is the View::ScaleRatio VBA
funciton that returns the view scale as a value stated as the
traditional ratio N:N. The macro would have to first know which view
you want to do this for, then find the value, and then create the
text. The draw back is that it will need to be manually run each time
the view scale changes.

This seems to me like this may be a case of the cure being worse than
the disease. I'll hunt around and see if anyone else has a better
solution.

Matt
http://sw.fcsuper.com

fcsuper

unread,
Apr 9, 2007, 4:38:56 PM4/9/07
to
FOSW,

Please see this thread. There's a macro there:
http://www.eng-tips.com/viewthread.cfm?qid=155304

It's deos what you want, but it doesn't update if you change the
view. You'll have to rerun the macro in that event.

Matt
http://sw.fcsuper.com

Wayne Tiffany

unread,
Apr 9, 2007, 12:42:28 PM4/9/07
to
I don't think we have access to the drawing view scale as a property - it's
something that's been on my wish list for years.

WT

"FOSW" <dw.s...@gmail.com> wrote in message
news:1176133096....@y80g2000hsf.googlegroups.com...

--
Posted via a free Usenet account from http://www.teranews.com

fcsuper

unread,
May 25, 2007, 4:06:36 PM5/25/07
to
FOSW,

There's a new updated macro that addes the drawing view scale to the
view, plus has some other options too. Here's the thread discussion
about it:

http://www.eng-tips.com/viewthread.cfm?qid=183684&page=4

I have it uploaded here:

http://sw.fcsuper.com/index.php?name=UpDownload&req=viewdownloaddetails&lid=71

Happy hunting!

Matt
http://sw.fcsuper.com
Co-moderator of http://groups.yahoo.com/group/solidworks/

On Apr 9, 8:38 am, "FOSW" <dw.sh...@gmail.com> wrote:

0 new messages