Author Topic: Simple Scale PlugIn  (Read 36155 times)

Offline FrankM

  • Ewok
  • *
  • Posts: 34
    • View Profile
Simple Scale PlugIn
« on: April 22, 2008, 17:56:53 pm »

Hello guys,

When I started using CamBam I was having hard time scaling the drawings
In my quest for learning C#, I wrote a simple scale plugIn.

 How to install :
Unzip the plugIn into the CamBam.PlugIn folder

How to use :
Select the Entities that you want to scale ,then open the plugIn from Tools-Scale
When the Scale window opens you should see the selected entities in it.
Enter the X dimension you wish then click on the Y textbox and it should change your drawing
or
Enter the Y dimension you wish then click on the X textbox and it should change

comments
I didn't put an option for the Z because I don't have much use for it ,but it does scale it and it will shoe it also.
It seems that it works best if the entities are Polylines rather then circles , the Location in relation to each
other gets kinda screwy with circles so I convert them to polylines before.

 I couldn't find a way to Apply a Transformation to an EntityCollection  so I inherited from the class and added a couple of Methods . There's probably a much simpler way since when you select several entities in CamBam you can change the Transformation Matrix and it applies it to all selected entities  ???.

Included are the zip folders for the plugIn and also for the code.