Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
CJ.10E-10mm
Posts: 70
Registered: ‎06-21-2013
Message 1 of 6 (242 Views)

Rule to Control the Visibility of Work Features in Inventor Pro 2014

242 Views, 5 Replies
10-02-2013 12:10 PM

Is there a way to write a set of rules so that I can switch Work Features On and Off via a Text Parameter.

 

I have an assembly made up of a number of parts used hundreds of times within in various sub-assemblies. If I make a particular sub-assembly 'Invisible' then subsequently 'Visible,' all work features that had previously been set to be 'Invisible' are switched to 'Visible' also.

 

Likewise if I simple want to set a particular Work Features' Visibility in one particular sub-assembly, I would like to be able to do this via a Text Parameter rather than having to laboriously scroll down the Assembly switching the visibility of features on and off.

 

At the moment if I turn the visibility of say a Work Plane On in a sub-assembly then all sub-assemblies deploying the same part switch the visibility of that Work Plane on too. Hence I cannot see my work for Work Planes.

 

Obviously the Global Switch under View is of no avail,

 

So I would like to be able to create a Text Parameter for each sub assembly and in turn each Work Feature with a Yes/No Visibility switch controlled via a set of Rules in iLogic.

 

Can anyone kindly help please?

 

Thank you so much.

 

CJ

Distinguished Mentor
pcrawley
Posts: 694
Registered: ‎05-23-2002
Message 2 of 6 (218 Views)

Re: Rule to Control the Visibility of Work Features in Inventor Pro 2014

10-03-2013 05:15 PM in reply to: CJ.10E-10mm

Try this: http://inventortrenches.blogspot.co.nz/2013/03/turn-onoff-all-workfeatures-with-ilogic.html

Should be easier than finding a parameter to toggle - or just adapt the code to suit.

Peter
Valued Contributor
CJ.10E-10mm
Posts: 70
Registered: ‎06-21-2013
Message 3 of 6 (209 Views)

Re: Rule to Control the Visibility of Work Features in Inventor Pro 2014

10-03-2013 05:41 PM in reply to: pcrawley

Hi Pcrawley,

 

Thanks for that but of course it is a blanket on/off and I need to be selective.

 

Distinguished Mentor
pcrawley
Posts: 694
Registered: ‎05-23-2002
Message 4 of 6 (206 Views)

Re: Rule to Control the Visibility of Work Features in Inventor Pro 2014

10-03-2013 05:43 PM in reply to: CJ.10E-10mm

Indeed it is.  Hence the "adapt to suit" comment.  I just offered it as a starting point rather than a complete solution.

Peter
Valued Contributor
CJ.10E-10mm
Posts: 70
Registered: ‎06-21-2013
Message 5 of 6 (202 Views)

Re: Rule to Control the Visibility of Work Features in Inventor Pro 2014

10-03-2013 05:48 PM in reply to: pcrawley

Hi Pcrawley,

 

Yes but sadly I don’t have the skills to modify so extensively.

 

Thank you for your kind suggestion anyway.

Valued Mentor
stephengibson76
Posts: 1,095
Registered: ‎08-01-2006
Message 6 of 6 (112 Views)

Re: Rule to Control the Visibility of Work Features in Inventor Pro 2014

04-17-2014 02:11 AM in reply to: pcrawley

I know this is an old post but...  The code works great for part work features, how do I make it include assembly and sub assembly work features?

Stephen Gibson



View stephen gibson's profile on LinkedIn


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.