iLogic: Controlling part adaptivity

iLogic: Controlling part adaptivity

Log0ut
Enthusiast Enthusiast
772 Views
3 Replies
Message 1 of 4

iLogic: Controlling part adaptivity

Log0ut
Enthusiast
Enthusiast

Example: I have two parts in my assembly: part1 and part2

How i can turn adaptivity on, for tehese parts, using ilogic?

0 Likes
773 Views
3 Replies
Replies (3)
Message 2 of 4

mdavis22569
Mentor
Mentor

You'd likely need to have the iLogic have the name / file name - identification in the coding.    If not, you could have it "prompt" you for it.

 

But I really don't see it as being any faster than turning it on / off yourself. 

(from the limited information shared) 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

0 Likes
Message 3 of 4

Log0ut
Enthusiast
Enthusiast

Found solution:

Dim oDoc As AssemblyDocument
oDoc = ThisDoc.Document
For Each oPart In oDoc.ComponentDefinition.Occurrences
	If oPart.Name = "Part1" Then
		oPart.Adaptive = True
	Else If oPart.Name = "Part2" Then
		oPart.Adaptive = True
	End If
Next
Message 4 of 4

johnsonshiue
Community Manager
Community Manager

Hi! Please note that the adaptive relationship only exist within the context of the assembly. So, the adaptive parts cannot be adaptive in another assembly. At the moment, Inventor does not support flexible parts (a part with undetermined length).

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes