Place iLogi part's with iLogic code

Place iLogi part's with iLogic code

lars
Contributor Contributor
330 Views
3 Replies
Message 1 of 4

Place iLogi part's with iLogic code

lars
Contributor
Contributor

Hello

 

I trying to place selection of iLogic Part's with form using iLogic rule, does anyone have a solution how to do this?

 

Regards Lars

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

Anonymous
Not applicable

I am trying to do the exact same thing. 

0 Likes
Message 3 of 4

LukeDavenport
Collaborator
Collaborator

 

Here's how you'd place a normal component with iLogic:

 

(code is placing a part called 'Alloy Wheel.ipt' located in a folder called CAD WIP at the moment - just point this to whatever file you like)

 

ThisApplication.CommandManager.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, "C:\CAD WIP\Alloy Wheel.ipt")

ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyPlaceComponentCmd").Execute()

ThisApplication.ActiveDocument.Update2(-1)

 

Cheers,

Luke

Message 4 of 4

lars
Contributor
Contributor

Thankyou, but I know this part of place component - What i need is to place using the function Place iLogic Component and generate new file + bring up form?

0 Likes