Can this be done with ilogic

Can this be done with ilogic

jletcher
Advisor Advisor
592 Views
5 Replies
Message 1 of 6

Can this be done with ilogic

jletcher
Advisor
Advisor

I have a pattern of holes that will be suppress if count is 1 this was easy. the kicker is I need to change the direction of the pattern if my user selects left the pattern will go to the left if he selects right pattern will go right and if they select both it will go in both directions can this be done with ilogic? If not I guess I will have to add 3 patterns supressing the ones they don't need I know this can be done.

 

Inventor 2012 will not go to 2013 it be junk

0 Likes
593 Views
5 Replies
Replies (5)
Message 2 of 6

jletcher
Advisor
Advisor

Also to add can you take a dimension and change it to be driven dimension and vise versa? with ilogic

0 Likes
Message 3 of 6

jletcher
Advisor
Advisor

To add more I have a form to adjust the part now I can have three or four or even more some with the same part config but others may be different. I have the form to show when part is being inserted to after I adjust the part to what I need can it create a new file when I hit done? I can't us iparts because there is no tell hole the part will be configure.

0 Likes
Message 4 of 6

jletcher
Advisor
Advisor

We really need a book on this.. or more samples I understand it just can't find codes to do it.

0 Likes
Message 5 of 6

Curtis_Waguespack
Consultant
Consultant

Hi jletcher,

Here is an example:

http://forums.autodesk.com/t5/Autodesk-Inventor/Changing-Circular-Pattern-Orientation-with-iLogic/m-...

 

And here is an example for flipping the midplane option:

app = ThisApplication

'flip rectangular pattern MidPlane option
If Feature.InventorFeature("Rectangular Pattern1").XDirectionMidPlanePattern = True then
Feature.InventorFeature("Rectangular Pattern1").XDirectionMidPlanePattern = False
Else Feature.InventorFeature("Rectangular Pattern1").XDirectionMidPlanePattern  = True
End if

 You might need to use YDirectionMidPlanePattern, in addition to or rather than XDirectionMidPlanePattern depending upon your case.


 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com


EESignature

Message 6 of 6

jletcher
Advisor
Advisor

Thanks i will give it a try

0 Likes