# Thread: How to do this ?

1. ## How to do this ?

The problem statement is tht thr is a table with 3 identical legs. Of this i need to change the length of one leg. So i ve to write a macro by which i can chage the leg height & the change should be such that the table gets tilted as per the new ht of the 3rd leg.

How to proceed....

2. sounds like a class assignment. what do you have so far?
can you post your dwg file here?

3. You need to add more info. Are the three legs at 90? with the table? Are they at angles? Does the cut of the leg have to be perpindicular with the leg? Are the three legs seperated evenly apart?

And welcome

4. well....... ya its an sort of class assignment. the drawing is simple. I ve uploaded it. Now I ve to select any one leg & decrease its height. And I want the table should always be in contact of the leg(so the table will get tilted if I cange the height). Thats it.
The problem is that I want the co-ordinates of all the corners. How to get all the coordinates.

Hope its more clear now.

5. Are the legs cylindrical? Are the rectangular prisms?

You can get the coordinates by just applying a snap to them (depending on the shape).

And just a hint for your solution, I don't think you can cut the leg perpidicular to the leg to get the difference in height of the leg the same as the table when tilted. I'm pretty sure you have to cut it at an angle...or at least chamfer the piece of the leg that, when tilted, becomes in contact with the floor.

6. I don't know much about AutoCad, but if you're dealing with precise figures, I think you can only use the height/position on the centre line of each leg, otherwise things will become very complicated very quickly. Chamfers etc. can be applied once the table angle is determined.

7. Originally Posted by malik641
Are the legs cylindrical? Are the rectangular prisms?

You can get the coordinates by just applying a snap to them (depending on the shape).
ya thats what i want. How to get the coordinates. Can u explain it more.
Okay lets make it a bit diff.
Suppose I have 3 cuboids(can be anything) in a particular drawing. Now I need to select one of them & I need to write a macro which can give me the coordinates(or coordinate of the end points of main diaglnal) of the selected cuboid.
thxxx

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•