How can we add a specific bearing in inventor assembly thru' content center with iLogic.

How can we add a specific bearing in inventor assembly thru' content center with iLogic.

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

How can we add a specific bearing in inventor assembly thru' content center with iLogic.

shubham.pawar.external
Participant
Participant

Hi everyone,

I have a query,

How can we add a specific bearing in assembly thru' content center with iLogic.

I have a ref. code that i am using, please refer it.

Components.AddContentCenterPart("bearing_01", "Shaft Parts:Bearings:Roller Bearings:Spherical Roller Bearing", "SKF- with Cylindrical Bore", {"DESIGNATION", "SKF23222 CC/W33", "Diam", "110", "DD", "200", "B", "70"}, position := Nothing, grounded := False, visible := True, appearance := Nothing)

am i missing something in above.

 

Also, looking for option to autoupdate the size w.r.t. to other parts parameter.

 

Thanks in advance.

Regards.

 

 @dutt.thakar , @chandra.shekar.g 

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

shubham.pawar.external
Participant
Participant

For the above mentioned code, got following error.

shubhampawarexternal_0-1671002127617.png

 

0 Likes
Message 3 of 4

A.Acheson
Mentor
Mentor

The easiest way to add the occurrence by code is to place it manually and use capture tool to capture the occurrence by add function. There must be an error in your add line. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 4 of 4

dutt.thakar
Collaborator
Collaborator

@shubham.pawar.external 

 

I tried with this code and it is adding bearing with the name only, can you try the same and then modify this as per your requirement?

 

Components.AddContentCenterPart("bearing-01","Shaft Parts:Bearings:Roller Bearings:Spherical Roller Bearings","DIN 635 SKF- with Cylindrical Bore","SKF (22322 CC/W33)", DIN_635_SKF_with_CylPos)

 

If you want to add with size, make sure you write correct column names and family names as well. See below snip where I am adding Row no 6. SKF (22206 CC) with Inside and Outside diameter written in the code snippet.

 

duttthakar_0-1671707665563.png

Components.AddContentCenterPart("bearing-01","Shaft Parts:Bearings:Roller Bearings:Spherical Roller Bearings","DIN 635 SKF- with Cylindrical Bore",{"Size Designation","SKF (22206 CC)","Inside Diameter","30","Outside Diameter","62"},position := Nothing)

 

Hope this will be helpful.

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn
0 Likes