Community
Hi,
Iam using Inventor 2013. Iam currently trying to use ilogic rules to turn off components and fixings in my assembly model. I am controlling this by a custom property in the iproperties. using the following code:
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 54357 StartFragment: 314 EndFragment: 54325 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
IfiProperties.Value("Custom", "BRACKETS")=TrueThenComponent.Visible("E0000437:1")=TrueComponent.Visible("E0000437:2")=TrueComponent.Visible("E0000437:3")=TrueComponent.Visible("E0000437:4")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:1")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:2")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:3")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:4")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:5")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:6")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:7")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:8")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:1")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:2")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:3")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:4")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:5")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:6")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:7")=TrueComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:8")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:9")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:10")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:11")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:12")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:13")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:14")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:15")=TrueComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:16")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:1")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:2")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:3")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:4")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:5")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:6")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:7")=TrueComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:8")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:1")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:2")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:3")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:4")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:5")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:6")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:7")=TrueComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:8")=TrueElseIfiProperties.Value("Custom", "BRACKETS")=FalseThenComponent.Visible("E0000437:1")=FalseComponent.Visible("E0000437:2")=FalseComponent.Visible("E0000437:3")=FalseComponent.Visible("E0000437:4")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:1")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:2")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:1")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:2")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:3")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:4")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:5")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:6")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:7")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:8")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:1")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:2")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:3")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:4")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:5")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:6")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:7")=FalseComponent.Visible("E0002008 Hex-Head Flat Bolt (Full Thread) SS-304 (ISO4018) M10 x 50:8")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:9")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:10")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:11")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:12")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:13")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:14")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:15")=FalseComponent.Visible("E0002158 Plain Washer SS-304 (ISO7089) B 10.5:16")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:1")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:2")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:3")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:4")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:5")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:6")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:7")=FalseComponent.Visible("E0002170 Spring Washer SS-304 (DIN127) A 10:8")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:1")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:2")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:3")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:4")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:5")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:6")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:7")=FalseComponent.Visible("E0002068 Hex Nut SS-304 (ISO4032) M10:8")=FalseEndIf
This rule runs fine in the components, but when the drawing opens I receive a fail message:
Error in rule: BRACKETS, in document: E0000816-TEST.iam
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
Anybody have any ideas?
Thanks,