Select multiple objects
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
Select multiple objects

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





Posted: Tue Dec 07, 2004 11:31 pm    Post subject: Select multiple objects Reply with quote

I've been working with this example of selecting objects. I can't seem to figure out how to select multiple or more than one object. Can anyone point me in the right direction?

Public Sub ScaleObject()Dim objDrawingObject As AcadEntityDim varEntityPickedPoint As VariantDim varBasePoint As VariantDim dblScaleFactor As DoubleOn Error Resume Next ThisDrawing.Utility.GetEntity objDrawingObject, varEntityPickedPoint, _ "Please pick an entity to scale: "If objDrawingObject Is Nothing Then MsgBox "You did not choose an object" Exit SubEnd IfvarBasePoint = ThisDrawing.Utility.GetPoint(, _ "Pick a base point for the scale:")dblScaleFactor = ThisDrawing.Utility.GetReal("Enter the scale factor: ")'Scale the objectobjDrawingObject.ScaleEntity varBasePoint, dblScaleFactorobjDrawingObject.UpdateEnd Sub

Back to top
Jeff Mishler
Guest





Posted: Tue Dec 07, 2004 11:50 pm    Post subject: Re: Select multiple objects Reply with quote

Use a selection set.....

--
Jeff
check out www.cadvault.com
"Leonard Johnson" <leonard@phalighting.com> wrote in message
news:41b5f6e9_3@newsprd01...
I've been working with this example of selecting objects. I can't seem to
figure out how to select multiple or more than one object. Can anyone point
me in the right direction?
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