Viewport scale in VBA

Viewport scale in VBA

Anonymous
Not applicable
860 Views
9 Replies
Message 1 of 10

Viewport scale in VBA

Anonymous
Not applicable
Anyone know how to get the scale of a paperspace viewport from a VBA
procedure ?

Thanks in advance

Dave
0 Likes
861 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
Look at the object model.


--
R. Robert Bell, MCSE
www.AcadX.com


"David Atkins" wrote in message
news:D60C31882B7434BBCE2C674D30A5F152@in.WebX.maYIadrTaRb...
| Anyone know how to get the scale of a paperspace viewport from a VBA
| procedure ?
|
| Thanks in advance
|
| Dave
|
|
0 Likes
Message 3 of 10

Anonymous
Not applicable
Thanks for the condescending reply
I am a beginner trying to apply some code to a practical purpose. We all
have to start somewhere. Could you do me a favour and not answer any more
of my queries.

Regards

Dave

"R. Robert Bell" wrote in message
news:C43C73909F168C2B08A87FCFF87CD63A@in.WebX.maYIadrTaRb...
> Look at the object model.
>
>
> --
> R. Robert Bell, MCSE
> www.AcadX.com
>
>
> "David Atkins" wrote in message
> news:D60C31882B7434BBCE2C674D30A5F152@in.WebX.maYIadrTaRb...
> | Anyone know how to get the scale of a paperspace viewport from a VBA
> | procedure ?
> |
> | Thanks in advance
> |
> | Dave
> |
> |
>
>
0 Likes
Message 4 of 10

Anonymous
Not applicable
I started with the object model.


--
R. Robert Bell, MCSE
www.AcadX.com


"David Atkins" wrote in message
news:4EB7B120694C1FA407DE722C8FD24CED@in.WebX.maYIadrTaRb...
| Thanks for the condescending reply
| I am a beginner trying to apply some code to a practical purpose. We all
| have to start somewhere. Could you do me a favour and not answer any more
| of my queries.
|
| Regards
|
| Dave
|
| "R. Robert Bell" wrote in message
| news:C43C73909F168C2B08A87FCFF87CD63A@in.WebX.maYIadrTaRb...
| > Look at the object model.
| >
| >
| > --
| > R. Robert Bell, MCSE
| > www.AcadX.com
| >
| >
| > "David Atkins" wrote in message
| > news:D60C31882B7434BBCE2C674D30A5F152@in.WebX.maYIadrTaRb...
| > | Anyone know how to get the scale of a paperspace viewport from a VBA
| > | procedure ?
| > |
| > | Thanks in advance
| > |
| > | Dave
| > |
| > |
| >
| >
|
|
0 Likes
Message 5 of 10

Anonymous
Not applicable
And it wasn't condescending... it was a hint.


--
R. Robert Bell, MCSE
www.AcadX.com


"David Atkins" wrote in message
news:4EB7B120694C1FA407DE722C8FD24CED@in.WebX.maYIadrTaRb...
| Thanks for the condescending reply
| I am a beginner trying to apply some code to a practical purpose. We all
| have to start somewhere. Could you do me a favour and not answer any more
| of my queries.
|
| Regards
|
| Dave
|
| "R. Robert Bell" wrote in message
| news:C43C73909F168C2B08A87FCFF87CD63A@in.WebX.maYIadrTaRb...
| > Look at the object model.
| >
| >
| > --
| > R. Robert Bell, MCSE
| > www.AcadX.com
| >
| >
| > "David Atkins" wrote in message
| > news:D60C31882B7434BBCE2C674D30A5F152@in.WebX.maYIadrTaRb...
| > | Anyone know how to get the scale of a paperspace viewport from a VBA
| > | procedure ?
| > |
| > | Thanks in advance
| > |
| > | Dave
| > |
| > |
| >
| >
|
|
0 Likes
Message 6 of 10

Anonymous
Not applicable
David Atkins wrote:
> Thanks for the condescending reply
> I am a beginner trying to apply some code to a practical purpose. We
> all have to start somewhere. Could you do me a favour and not answer
> any more of my queries.

David,

While in the VBA IDE, press F2 to bring up the Object Browser. In the
list of objects on the left, look for AcadPViewport. Once selected, the
list on the right will show you all the methods and properties
associated with that object, including its scale.

While Robert's reply was terse, it was good advice. Get into the habit
of pressing F1 for help and F2 for the Object Browser.

--
"It's more important that you know how to find the answer than to have
the answer." - Me
0 Likes
Message 7 of 10

Anonymous
Not applicable
Thanks for the reply Frank, it was much more helpful.

Regards

Dave

"Frank Oquendo" wrote in message
news:5F817EAD72137B054082136A48CC216F@in.WebX.maYIadrTaRb...
> David Atkins wrote:
> > Thanks for the condescending reply
> > I am a beginner trying to apply some code to a practical purpose. We
> > all have to start somewhere. Could you do me a favour and not answer
> > any more of my queries.
>
> David,
>
> While in the VBA IDE, press F2 to bring up the Object Browser. In the
> list of objects on the left, look for AcadPViewport. Once selected, the
> list on the right will show you all the methods and properties
> associated with that object, including its scale.
>
> While Robert's reply was terse, it was good advice. Get into the habit
> of pressing F1 for help and F2 for the Object Browser.
>
> --
> "It's more important that you know how to find the answer than to have
> the answer." - Me
>
>
0 Likes
Message 8 of 10

Anonymous
Not applicable
Frank Oquendo wrote:

> "It's more important that you know how to find the answer than to have
> the answer." - Me

You must be a friend of Fred Fiumara, my drafting teacher in high
school. He taught me the two most important things I learned in school:

1. What your quote says
2. It's not how busy you are, but how busy you look that matters.

Both very valuable lessons! 😄
0 Likes
Message 9 of 10

Anonymous
Not applicable
"It's not how busy you are, but how busy you look that matters."

- And you sound like an old associate of mine. Ions ago in the dark ages
of board drafting, the guy who sat next to me could sleep sitting up on
his stool with his lead holder held perfectly - upright, slightly tilted
and touching the vellum.
___________________________
Mike Tuersley
AutoCAD Clinic
Rand IMAGINiT Technologies
0 Likes
Message 10 of 10

Anonymous
Not applicable
Did he twitch occasionally, so it looked like he was moving the lead holder?
;^0


--
R. Robert Bell, MCSE
www.AcadX.com


"Mike Tuersley" wrote in message
news:MPG.191bd445656267b79896f1@discussion.autodesk.com...
| "It's not how busy you are, but how busy you look that matters."
|
| - And you sound like an old associate of mine. Ions ago in the dark ages
| of board drafting, the guy who sat next to me could sleep sitting up on
| his stool with his lead holder held perfectly - upright, slightly tilted
| and touching the vellum.
| ___________________________
| Mike Tuersley
| AutoCAD Clinic
| Rand IMAGINiT Technologies
0 Likes