Moving Objects Between Model Space & Paper Space
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Moving Objects Between Model Space & Paper Space

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
JFord
Guest





Posted: Tue Dec 07, 2004 5:58 pm    Post subject: Moving Objects Between Model Space & Paper Space Reply with quote

My end result is I want a routine that will move selected objects from paper space to model space (or vice versa), such that the paper space plot appearance remains unchanged.
For instance, if I have a circle in paper space whose center is 1" to the right and 1" above the lower left corner of a viewport, I want the routine to move the circle to model space and place it such that in the viewport the center of the circle is 1" to the right and 1" above the lower left corner of the viewport.
I'm thinking there must be a viewport (or other object) property that gives a model space reference point for the viewport (for example, a model space (x,y) point that is at the exact center or corner of the viewport). I've so far been unable to determine what property I need. Any Ideas.
Thanks!

Back to top
Matt W
Guest





Posted: Tue Dec 07, 2004 6:22 pm    Post subject: Re: Moving Objects Between Model Space & Paper Space Reply with quote

Express Tools --> Layout Tools --> Change Space

--
I support two teams: The Red Sox and whoever beats the Yankees.

"JFord" <nospam@address.withheld> wrote in message
news:17273303.1102424315077.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
My end result is I want a routine that will move selected objects from
paper space to model space (or vice versa), such that the paper space plot
appearance remains unchanged.
For instance, if I have a circle in paper space whose center is 1" to
the right and 1" above the lower left corner of a viewport, I want the
routine to move the circle to model space and place it such that in the
viewport the center of the circle is 1" to the right and 1" above the
lower left corner of the viewport.
I'm thinking there must be a viewport (or other object) property that
gives a model space reference point for the viewport (for example, a model
space (x,y) point that is at the exact center or corner of the viewport).
I've so far been unable to determine what property I need. Any Ideas.
Thanks!
Back to top
sdanis
Guest





Posted: Tue Dec 07, 2004 6:22 pm    Post subject: Re: Moving Objects Between Model Space & Paper Space Reply with quote

Express tools has "change space" in the Layout tools option.
That should do it.
Hope this helps

Back to top
JFord
Guest





Posted: Tue Dec 07, 2004 7:12 pm    Post subject: Re: Moving Objects Between Model Space & Paper Space Reply with quote

Thanks for the reply. Let me ask another question. How to I access express tools from VBA?
Back to top
Jeff Mishler
Guest





Posted: Tue Dec 07, 2004 8:09 pm    Post subject: Re: Moving Objects Between Model Space & Paper Space Reply with quote

To build your own, look at the TranslateCoordinates method.

--
Jeff
check out www.cadvault.com
"JFord" <nospam@address.withheld> wrote in message
news:17273303.1102424315077.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
My end result is I want a routine that will move selected objects from
paper space to model space (or vice versa), such that the paper space plot
appearance remains unchanged.
For instance, if I have a circle in paper space whose center is 1" to
the right and 1" above the lower left corner of a viewport, I want the
routine to move the circle to model space and place it such that in the
viewport the center of the circle is 1" to the right and 1" above the
lower left corner of the viewport.
I'm thinking there must be a viewport (or other object) property that
gives a model space reference point for the viewport (for example, a model
space (x,y) point that is at the exact center or corner of the viewport).
I've so far been unable to determine what property I need. Any Ideas.
Thanks!
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB