ScaleEntity Method

ScaleEntity Method

dgleason
Participant Participant
445 Views
4 Replies
Message 1 of 5

ScaleEntity Method

dgleason
Participant
Participant
Does anyone know what the arguments are for the polyline ScaleEntity method... ie. objPline.ScaleEntity (?,?,?)


Thanks
Dave Gleason
0 Likes
446 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
From the Help file:BasePoint, Variant (three-element array of doubles); ScaleFactor,Double. Also, AutoComplete should give you this info. Just type the method, and a space and they should pop up. -Ed
0 Likes
Message 3 of 5

dgleason
Participant
Participant
Thank you.. I got it. Some times when I have obj's defined for ACAD obj items the auto complete doesn't show what to put. (This is what was happening with the scaling) I just kept doing it until it worked, then I saw your reply.
so thanks.

Do you know how to trim the ends of a line that is between two closed boundaries... (Picture a circle and then concentric circle inside the first. Suppose the larger circle is hatched, and then the hatch is exploded into polys.) How can I trim the edges of the polys that are outside of the smaller circle, but inside of the larger circle. I want to do this using some kind of cool vb / autocad... method. I am doing it know using the scaling, but it really only works for rectangle of closed polys with sharp edges not anything with a curve. I have played a little with sending trim commands to the command line, but I really don't like that so much???...
Thanks
Dave
0 Likes
Message 4 of 5

Anonymous
Not applicable
Take a look at the IntersectWith method, then modify the startpoint and
endpoint of your line to suit.
-Josh

dgleason wrote:

> Thank you.. I got it. Some times when I have obj's defined for ACAD obj
> items the auto complete doesn't show what to put. (This is what was
> happening with the scaling) I just kept doing it until it worked, then I
> saw your reply.
> so thanks.
>
> Do you know how to trim the ends of a line that is between two closed
> boundaries... (Picture a circle and then concentric circle inside the
> first. Suppose the larger circle is hatched, and then the hatch is
> exploded into polys.) How can I trim the edges of the polys that are
> outside of the smaller circle, but inside of the larger circle. I want
> to do this using some kind of cool vb / autocad... method. I am doing it
> know using the scaling, but it really only works for rectangle of closed
> polys with sharp edges not anything with a curve. I have played a little
> with sending trim commands to the command line, but I really don't like
> that so much???...
> Thanks
> Dave
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
Dave

Try this way

 

Sub
size=3>objPline
()

 

Dim objP As AcadPolyline
Dim basePoint(0 To
2) As Double
Dim scalefactor As Double
    basePoint(0) =
0: basePoint(1) = 0: basePoint(2) = 0
    scalefactor =
5

For Each objP In
ThisDrawing.ModelSpace
 objP.ScaleEntity basePoint,
scalefactor
    
  objP.Update
 Next
objP

End Sub


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Does
anyone know what the arguments are for the polyline ScaleEntity method... ie.
objPline.ScaleEntity (?,?,?)


Thanks
Dave Gleason

0 Likes