Include part in cut/extrusion as needed.

Include part in cut/extrusion as needed.

Anonymous
Not applicable
872 Views
6 Replies
Message 1 of 7

Include part in cut/extrusion as needed.

Anonymous
Not applicable

I am in the process of making a flat bed configurator and I need to have the I-beam in the attached pic that is inside the turret box cut out to trim accordingly when the beam crosses the cutout dwg plane(pic 2).  I can include it in the cut outs, but then it is always cut into 2 pieces even when I don't want it to be.

 

I have included my spaghetti code as an attachment as well (used Note++). 

0 Likes
Accepted solutions (1)
873 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Is there no solution to my problem after 40 reviews?  Is there more information needed?

0 Likes
Message 3 of 7

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @Anonymous 

 

Are you asking about removing a component from an assembly feature? If so, see this example, it removes or adds a component from a feature based on input.

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

 

oAction = InputRadioBox("Prompt", "Inlcude Cut", "Exclude Cut", True, "iLogic")

Dim oDoc As AssemblyDocument
oDoc = ThisApplication.ActiveDocument

oCutName = "Extrusion 1" 'this is the assembly cut
oComponentName = "MyPart:1" 
Feature.IsActive(oCutName) = oAction 'enable/disable cut
oCut = Feature.InventorFeature(oCutName)   'get cut
oOcc = Component.InventorComponent(oComponentName) 'get component

If oAction = True Then
	oCut.AddParticipant(oOcc)  
Else
	oCut.RemoveParticipant(oOcc) 
End If

EESignature

0 Likes
Message 4 of 7

Anonymous
Not applicable

Curtis,

The 5 i-beam pieces all move as one and are driven by a parameter dim from the end of the bed.  If the i-beam (the one showing interference) crosses the the plane of the large cut out (turret box cut out), I need it to be automatically trimmed to the boundaries of the turret box cut out.  I don't want the end user to have to do anything except enter dimensions provided in the form.

0 Likes
Message 5 of 7

Anonymous
Not applicable

Also, since I have your ear.....

I am just getting back into using iLogic after about 5-6 years and I have been trying to find so good reference materials on the iLogic programming syntax and have not been able to find a comprehensive list that breaks down the code into something like a flow chart.  Can you (or anyone else) point me to something that would be helpful?

0 Likes
Message 6 of 7

Curtis_Waguespack
Consultant
Consultant

Hi @Anonymous ,

 

My example was intended just to show the concept, you should be able to incorporate the method of adding and removing the component(s) to the assembly feature into your code.

 

As far as finding examples, most likely you'll want to look at the API help material in order to extend the capabilities of Inventor. There is an abundance of material to found in the API help, and then Google searching "Ilogic+ <some API call>.

 

The other thing to note is that in Inventor 2020 the iLogic editor has some API assistance built right in:ccc.PNG

 

This is how you find the API Help files:

aaa.png

 

bbb.PNG

 

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

EESignature

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thanks Curtis,

I looked over your code and was thinking that I could use the concept, but I kinda looking for your validation that of what I was thinking.  And...you did. 😉

 

We just switched to 2019 earlier this year and I did notice the pop-ups.  I will have to dig into the help a bit more as well.  It never was much help before to be, so I didn't really bother with it.

 

 

Thanks again for your help.