Autodesk Inventor 2010 Inventor iLogic Extension 3 / 28 これで、チュートリアルPart 1 で使用するサンプルデータのロードが完了しました。 パラメータを作成する これからパラメータエディタを使用して、ルールのプログラム作成に使用する

  • Published on
    14-May-2018

  • View
    218

  • Download
    3

Embed Size (px)

Transcript

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    1 / 28

    Autodesk Inventor

    iLogic 2010 Part 1

    3 Part 1 Part 1 iLogic

    Part 2 iLogic

    Excel Excel

    Part 3 iLogic

    iLogic Part 1

    Part1

    iLogic iLogic 2

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    2 / 28

    Part 1

    Part 1 iLogic

    iLogic

    iLogic

    Part 1

    1. Autodesk Inventor [][][

    ][][][]

    2. [][]iLogic 2010

    Inventor iLogic 2010 Tutorial.ipj C:Documents

    and SettingsAll UsersDocumentsAutodeskInventor iLogic 2010Tutorials

    Inventor [iLogic 2010 Tutorial]

    3. [iLogic 2010 Tutorial] [

    ]

    4. [] [] []

    bracket_no_rules.ipt

    5. [] [] []

    bracket.ipt

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    3 / 28

    Part 1

    [mass]

    [holes]

    [chamfers]

    [][][iLogic Parameters]

    [Parameter Editor]

    [mass]

    1. [Name]mass

    2. [mass][Type]iLogic

    [User][String][Boolean][User]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    4 / 28

    3. [mass][Unit][ul]

    4. [Equation]100[Nominal

    Value][100.000000]

    5. [mass][Key][mass]

    [holes]

    1. [Name]holes

    2. [holes][Type][String]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    5 / 28

    3. [holes][Unit]

    4. [holes][Make Multi-

    Value] [Delete Parameter][Make Multi-Value][Value List

    Editer]

    [Add New Item(s)]base[Add][Value]

    [base]

    5. [flange][none][Value][OK][Value List

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    6 / 28

    Editer]

    6. [holes][Multivalue]

    [Value List Editer][Value][flange]

    [Equation][Nominal Value][flange]

    7. [holes][Key][holes]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    7 / 28

    [chamfers]

    1. [Name]chamfers

    2. [chamfers ][Type][Boolean]

    3. [chamfers][Equation ]

    [True][False][True]

    4. [chamfers][Key]

    5. [Done]

    Part 1 27

    [Parameter Editor][Parameter Filter]

    iLogic,Model,User

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    8 / 28

    All All

    All Key

    All Non-key

    Model All

    Model Key

    1. [][iLogic][Add Rule][Rule Name]

    2. [Name]Modify_Feature[OK]

    [Edit Rule]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    9 / 28

    3. [Model]

    [Parameter]

    [Parameter]

    5 Keyword

    4. [iLogic Parameters]

    [Parameter] [holes][chamfers]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    10 / 28

    5. [User Parameters]

    [Parameter][mass]

    [holes][base][flange][none]

    [Multi-Value]

    [flange] [flange]

    1. If[If]

    If

    2. [iLogic Parameters][Parameter]

    3. [holes]

    4. ="flange"

    5. [Then]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    11 / 28

    6. [Rule Syntax]

    7. [Categories][Component/Feature]

    [Functions]

    8. [Functions][Feature.IsActive(featurename)]

    9. [Model][Names]

    10. [flange_hole][Names]

    11. featurename[Names][flange_hole]

    featurenemeflange_hole

    [flange_hole]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    12 / 28

    12. ("flange_hole")=True

    If holes="flange" Then

    Feature.IsActive("flange_hole")=True

    [holes][flange][flange_hole]

    13. [Rule Syntax]

    14. [Categories][Component/Feature]

    15. [Functions][Feature.IsActive(featurename)]

    16. [Model][Names]

    17. [base_hole][Names]

    18. featurename[Names][base_hole]

    featurenemebase_hole[base_hole]

    19. ("base_hole")=False

    If holes="flange" Then

    Feature.IsActive("flange_hole")=True

    Feature.IsActive("base_hole")=False

    [holes][flange][base_hole]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    13 / 28

    [base] [base]

    1. ElseIf[ElseIf]

    2. [iLogic Parameters][Parameters]

    3. [holes]

    4. ="base"

    5. [Then]

    6. [flange]&

    ElseIf holes ="base" Then

    Feature.IsActive("flange_hole")=False

    Feature.IsActive("base_hole")=True

    [none] [none]

    1. [base]&basenone

    TrueFalse

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    14 / 28

    2. EndIf[EndIf]

    If holes="flange" Then

    Feature.IsActive("flange_hole")=True

    Feature.IsActive("base_hole")=False

    ElseIf holes ="base" Then

    Feature.IsActive("flange_hole")=False

    Feature.IsActive("base_hole")=True

    ElseIf holes ="none" Then

    Feature.IsActive("flange_hole")=False

    Feature.IsActive("base_hole")=False

    End If

    3. [OK]

    1. [][][iLogic Parameters][Parameter Editor]

    2. [iLogic][All]

    3. [holes][Multivalue][flange]

    [flange]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    15 / 28

    4. [holes][MultiValue][base]

    [base]

    5. [holes][Multivalue][none]

    [none]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    16 / 28

    6. [Done]

    [Rule Name]

    [Modify_Feature]

    [Hole_Rule]

    1. [iLogic][edit iLogic Tree][iLogic Tree]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    17 / 28

    2. [In Document]iLogic [Modify_Feature]

    [Modify_Feature]

    3. Modify_FeatureHole_Rule

    4. [OK]

    [chamfers][True][False]

    [Equation]

    1. [iLogic][Add Rule][Rule Name]

    2. [Name]Chamfer_Rule[OK][Edit Rule]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    18 / 28

    3.

    If chamfers=True Then

    Feature.IsActive("chamfers")=True

    Else

    Feature.IsActive("chamfers")=False

    End If

    4. [OK]

    1. [][][iLogic Parameters][Parameter Editor]

    2. [iLogic][All]

    3. [chamfer][Equation][False]

    [False]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    19 / 28

    4. [chamfer][Equation][True]

    [True]

    5. [Done]

    [main_body][bracket_width]

    [mass][mass]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    20 / 28

    [Multi-Value][main_body]

    [bracket_width][mass][Multi-Value]

    [Multi-Value]

    100 1 in

    200 2 in

    300 3 in

    400 4 in

    [Multi-Value]

    [Multi-Value]

    [mass][Multi-Value]

    1. [][][iLogic Parameters][Parameter Editor]

    2. [Parameter Filter]AllKey [mass]

    [Make Multi-Value][Value List Editer]

    3. [Add New Item(s)]100200300400[Add]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    21 / 28

    4. [OK]

    5. [mass][Multivalue]

    6. [Done]

    [mass][Multi-Value]

    1. [iLogic][Add Rule][Rule Name]

    2. [Name]Width_Rule[OK][Edit Rule]

    3. [Model]

    4. If mass=100 Then

    5. [Model Parameters][Parameters]

    6. [bracket_width]=1

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    22 / 28

    If mass=100 Then

    bracket_width=1

    [mass][100][main_body][bracket_width]

    [1]

    7. ElseIf mass=200 Then

    8. bracket_width=2

    If mass=100 Then

    bracket_width=1

    ElseIf mass=200 Then

    bracket_width=2

    9. &[mass]

    [300][400]

    10. EndIf

    If mass=100 Then

    bracket_width=1

    ElseIf mass=200 Then

    bracket_width=2

    ElseIf mass=300 Then

    bracket_width=3

    ElseIf mass=400 Then

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    23 / 28

    bracket_width=4

    End If

    11. [OK]

    1. [][][iLogic Parameters][Parameter Editor]

    2. [All][Key]

    3. [mass][Multivalue][100]

    [100] 1

    4. [mass][Multivalue][200]

    [200] 2

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    24 / 28

    5. [300][400] 3 4

    6. [Done]

    [main_body]

    [bracket_width][Equation]

    100 1 in

    100 200 2 in

    200 300 3 in

    300 400 4 in

    400

    [Equation]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    25 / 28

    1. [iLogic][edit iLogic Tree][iLogic Tree]

    2. [In Document]iLogic [width_Rule]

    [Edit Rule]

    3. [Model]

    4.

    If mass100 And mass200 And mass300 And mass

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    26 / 28

    3. [Value][Delete Selected Items]

    [Value]

    4. [OK]

    [mass][Multi-Value]

    1. [mass][Equation]75

    75 1

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    27 / 28

    2. [mass][Equation]150

    150 2

    3. 2503501500 3

    4 6

    4. [Done]

  • Autodesk Inventor 2010

    Inventor iLogic Extension

    28 / 28

    iLogic Part1

    iLogic Part1 Part2

    Autodesk Inventor Autodesk, Inc.

    2009 Autodesk, Inc. All rights reserved.

Recommended

View more >