Replace Sub assembly in Main assembly with iLogic

Replace Sub assembly in Main assembly with iLogic

Pratik.Ksoni
Advocate Advocate
675 Views
3 Replies
Message 1 of 4

Replace Sub assembly in Main assembly with iLogic

Pratik.Ksoni
Advocate
Advocate

Hello,

 

i am using Inventor iLogic and good familiar with this, does any one guide me that how to replace sub assemblies into main assembly since i am aware at part level only.

 

Thanks

Pratik

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

JaneFan
Autodesk
Autodesk

Hello Pratic,

 

Please try this line with replacing the occurrence name and assembly file name you want to replace with.

SyntaxEditor Code Snippet

Component.Replace("SubAssembly:1", "OtherAssembly.iam<Master>", True)

 




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 4

Pratik.Ksoni
Advocate
Advocate

 Hello Jane,

 

i am sorry for late response, i tried given Syntax but it is not works since i need to replace iassemblies.

 

it will be highly appreciate if you provide me with actual example.

 

Thanks
Pratik

0 Likes
Message 4 of 4

t_hascj
Autodesk
Autodesk

Hi Pratik,

I'm not sure if it is helpful for you, but in iParts snippets are some helpful hints. The iLogic object iPart works also for iAssembly.

Jaroslav 

0 Likes