Consulting

Results 1 to 7 of 7

Thread: How to do this ?

  1. #1
    VBAX Newbie
    Joined
    Jun 2006
    Posts
    3
    Location

    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.

    Please help.
    How to proceed....
    I m using AutoCAD 2004

  2. #2
    VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    sounds like a class assignment. what do you have so far?
    can you post your dwg file here?
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    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?

    Could you add more details please?

    And welcome




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  4. #4
    VBAX Newbie
    Joined
    Jun 2006
    Posts
    3
    Location
    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. #5
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    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.




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  6. #6
    Administrator
    VP-Knowledge Base VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,478
    Location
    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.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  7. #7
    VBAX Newbie
    Joined
    Jun 2006
    Posts
    3
    Location
    Quote 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
  •