Autodesk Inventor
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Iv attached a picture to show the error & my rule text. I have created the Parameters etc. & the statement includes if & end if. Cheers,
Solved! Go to Solution.
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If Parameter("HEIGHT")=152.4
Parameter("UC_PROFILE")="152.4"
EndIf
If you are finding usnderstanding ilogic difficult, have a go at the online tutorials.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
** Use "End IF', not "ENDIF"
Pasting into IE erased the space.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Cheers,
My text in the 'UC_designation' Parameter contains 'x's. E.g - 152.x152x23
Inventor recognises this as an equation, therefor the rule doesnt work. Is there any way around this without replacing the 'x's?
Cheers,
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
when you created the "UC_PROFILE" Parameter, did you create it as a text parameter?
If not, in the parameters dialogue, use the drop down in the bottom left which by default says "Add Numeric". Select "Add Text" instead.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Cheers Wayne.
This is the first time iv started using Rules. If you havent already guessed!
Sandy
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Do you know if there is a way in which rules can be run automatically? E.g Everytime the part is updated or saved rather then having to press iTrigger
Cheers,
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
NVM. Iv added the rule into event triggers.
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm not that knowledgeable about triggers I'm afraid, as I have only really been creating rules which I need to run on command, but have a look at this...
http://inventortrenches.blogspot.co.uk/2012/01/cre
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
Re: 'End if must be preceded by a matching if'
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I just realised NVM stands for nevermind so mevermind my last post also!
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit

