Inventor Customization

Inventor Customization

Reply
*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 11 of 23 (272 Views)

Re: ilogic to count features

08-15-2012 08:39 AM in reply to: jletcher

now I did rename the hole feature could this be the reason it's not working.


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 12 of 23 (268 Views)

Re: ilogic to count features

08-15-2012 08:46 AM in reply to: jletcher

Here is a screen shot to show error

 

Error.JPG


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 13 of 23 (266 Views)

Re: ilogic to count features

08-15-2012 08:47 AM in reply to: jletcher

Holes I would like to have count if active and remove from count if inactive

 

holes.JPG


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Distinguished Contributor
thomaskennedy
Posts: 112
Registered: ‎09-27-2010
Message 14 of 23 (264 Views)

Re: ilogic to count features

08-15-2012 08:48 AM in reply to: jletcher

Hmmm..

 

Which line is Line 64 in your rule?

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 15 of 23 (260 Views)

Re: ilogic to count features

08-15-2012 08:56 AM in reply to: thomaskennedy

its the for each statement that you supplied..


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Distinguished Contributor
thomaskennedy
Posts: 112
Registered: ‎09-27-2010
Message 16 of 23 (257 Views)

Re: ilogic to count features

08-15-2012 09:00 AM in reply to: jletcher

Could you post your entire rule ? I can't see why it wouldn't work.

 

Or even better you could post your model...

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 17 of 23 (252 Views)

Re: ilogic to count features

08-15-2012 09:26 AM in reply to: thomaskennedy

Here is the model


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Distinguished Contributor
thomaskennedy
Posts: 112
Registered: ‎09-27-2010
Message 18 of 23 (252 Views)

Re: ilogic to count features

08-15-2012 10:07 AM in reply to: jletcher

Im not sure why it didnt work first time, I re copied the code back in and now its working.

 

I also added a line that checks if the last char of the hole name is a number - if it is a number then it doesnt get added to the count.

 

Hope this works OK for you.

*Pro
jletcher
Posts: 1,946
Registered: ‎05-18-2011
Message 19 of 23 (247 Views)

Re: ilogic to count features

08-15-2012 10:11 AM in reply to: thomaskennedy

Thats it great thanks...


Please mark this response as "Accept as Solution" if it answers your question.

James Letcher
2012 Factory Design Suite ( will not load 2013)
What happen to my Inventor :-(
Mentor
kmiller
Posts: 257
Registered: ‎12-17-2007
Message 20 of 23 (232 Views)

Re: ilogic to count features

08-16-2012 05:30 AM in reply to: jletcher

Just guessing but you where probably just missing the "End If" statement right above the Line that says "Next HFeature".  If you where wondering why it wasn't working the first time. 

 

PS - Thanks for the link to this on my post. 

-------------------------------------------------------------------------------------------------

If this response answers your question please click "Accept as Solution".
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.