Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Place iLogi part's with iLogic code

3 REPLIES 3
Reply
Message 1 of 4
lars
244 Views, 3 Replies

Place iLogi part's with iLogic code

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

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: lars

I am trying to do the exact same thing. 

Message 3 of 4
LukeDavenport
in reply to: Anonymous

 

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
in reply to: LukeDavenport

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?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report