Results 1 to 2 of 2

Thread: I Logic Inventor 2011

  1. #1
    Member
    Join Date
    2005-09
    Location
    MA
    Posts
    5
    Login to Give a bone
    0

    Question I Logic Inventor 2011

    Hey all,

    Trying to find a way where I-Logic controls the drawing view? By this I mean I have a part that I built I-Logic into to change diameter size and created a drawing for it. I don't not want the drawing view to change if I adjust the size of the part somewhere else any ideas?

    There is some drawing controls in I-Logic but not really sure how to use them or write the code.

    Thanks for your help
    Stephen

  2. #2
    Active Member
    Join Date
    2009-11
    Location
    North Texas
    Posts
    55
    Login to Give a bone
    0

    Default Re: I Logic Inventor 2011

    I've been wondering this also for a while, and after I read your question I decided to make it my goal to figure it out, and I think I've got something that works pretty well.

    A little credit to Kris_Inv2013 on the AutoDesk forums at http://forums.autodesk.com/t5/Invent...e/td-p/4322149

    He wrote his rule to set a specific scale based on being bigger or smaller than a certain size, but if you are like me, my part might be 3" long or 120" long, so a simple rule like that doesn't work.

    So the code I wrote was

    Code:
    ActiveSheet.View("VIEW15").Scale=(1/(Parameter("Canopy.ipt.Full_Width")/3.5))
    ActiveSheet.View("VIEW12").Scale=(1/(Parameter("Canopy.ipt.Full_Width")/3.5))
    ActiveSheet.View("VIEW22").Scale=(1/(Parameter("Canopy.ipt.Full_Width")/3.5))
    The way I came up with the 3.5 is that is roughly the size I want my part to be on the drawing after it is printed out. I took a measurement of my print window, came up with about 10.5" (we use legal paper), I divided it by 3 because I wanted the part to take up about half the space with room on both sides to fit 2 parts side by side.

    So then I referenced the parameter from my part file that shows the overall width of my part, and divided it by 3.5 In this example it came out to about 10.25, because the part was 35.875" wide. I then took the reciprocal of this number (or 1 divided by the number) and that gives me the scale value. The code then sets the scale to this value and it worked perfect. I went back and changed my part to 60" wide, and it updated and fit perfect on the sheet, I had to move it left or right a little bit, but it still worked much better than having to "guess and check" before.

    Hope this helped!

    -Daniel

Similar Threads

  1. inventor 2011 a PLAN 3d
    By adeleon.157770 in forum Español - Inventor
    Replies: 1
    Last Post: 2013-10-31, 06:23 PM
  2. 2011: Inventor 2011 check out
    By bub4 in forum Inventor - General
    Replies: 3
    Last Post: 2010-11-29, 09:49 PM
  3. pb validation inventor 2011
    By rpapanicola in forum Français - Inventor / AutoCAD Mechanical / AutoCAD Electrical
    Replies: 0
    Last Post: 2010-07-28, 07:12 PM
  4. Проблема в Inventor 2011
    By ias1976 in forum Русский - Inventor
    Replies: 0
    Last Post: 2010-05-13, 02:42 AM
  5. 2011: NEW -Inventor 2011 book available
    By wasim in forum Inventor - General
    Replies: 0
    Last Post: 2010-04-30, 07:11 PM

Posting Permissions

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