+ Reply to Thread
Results 1 to 3 of 3

Thread: Generating overall dimensions

  1. #1

    Generating overall dimensions

    Hi all!

    I am trying to write a script that will allow for me to generate the overall x, y and z dimension of a project I am working on in Rhino.

    So far I have:
    Python Code:
      def getPoints():
          rs.Command("_SelPolysrf")
          rs.Command("_Silhouette")
          lines=rs.SelectedObjects()
          for obj in lines:
              rs.DivideCurve(obj,1,True)
          rs.Command("_SelNone")
    Next I am trying to add all the generated points into a list and sort the list 3 times once to determine the points that make up the greatest x-axis distance, greatest y-axis distance and finally greatest z axis distance. Using these points I would next add linear dimensions to the model.

    I appreciate any help you can provide!

    Regards,

    Andrew
    Last edited by Steve Baer; 08-10-2012 at 10:47 PM.

  2. #2
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    Hi Andrew,
    Sounds like you just need to use the BoundingBox function
    http://www.rhino3d.com/5/ironpython/...oundingbox.htm

  3. #3
    Thats the ticket i'm looking for!

    Thanks!
    -Andrew

+ Reply to Thread

Tags for this Thread

Posting Permissions

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