ILogic for autoupdate Bearing Size and Bearing Generator

ILogic for autoupdate Bearing Size and Bearing Generator

shubham.pawar.external
Participant Participant
258 Views
3 Replies
Message 1 of 4

ILogic for autoupdate Bearing Size and Bearing Generator

shubham.pawar.external
Participant
Participant

Hello all,

 

I have a query for autoupdating the bearing sizes through i logic.

being specifically, I have done a assembly of a shaft and bearing, but whenever i update the shaft diameter, i have to go for bearing generator to update the bearing size.

And adding one more thing that, i have to autoupdate other components based on the bearing size parameters, unfortunatly whenever I update the bearing, its component name also get changed and iLogic gives an error(component not found).

 

 

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

HermJan.Otterman
Advisor
Advisor

to prevent getting the "component not found" Error, rename you bearing in the Inventor browser. use this new name in you code. after changing this name it will not change anymore if that part gets replaced by an other part, so you code should keep on working

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 3 of 4

shubham.pawar.external
Participant
Participant

Hello,

As you said, i have tried it, but when we update the bearing, bearing name will also get updated as per size.

and will cause the issue. Please share your review on it.

shubhampawarexternal_1-1670586488846.png

 

And, thanks for the response.

0 Likes
Message 4 of 4

HermJan.Otterman
Advisor
Advisor

I see, does the name of the assembly "Bearing_01" stay the same? if so could you take this and look at the "allreferencedcomponents" to get a reference to the bearing itself?... this way you would be independent of the name of the bearing.

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan