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 iLogic Component

1 REPLY 1
Reply
Message 1 of 2
j.vanderheijden
475 Views, 1 Reply

place iLogic Component

Is it possible to skip the small preview window and the parameters display when i place an iLogic component white the command Place iLogic Component.

Mvg Jos

Your drawings are only as good as the symbols that complete them...
1 REPLY 1
Message 2 of 2
adam.nagy
in reply to: j.vanderheijden

Happy New Year!

 

If you don't want the preview window to appear, you don't want the parameters dialog to appear, then the only functionality left is the copying of the file that you want to place.

You could do that using Windows API or e.g. the ThisApplication.FileManager object

 

Then you could just start the component placement command ("Place") of Inventor with the copied part/assembly like shown in this devblog post: http://adndevblog.typepad.com/manufacturing/2013/01/provide-command-parameters-using-postprivateeven...

 

In iLogic it would look like this:

Dim cm As CommandManager
cm = ThisApplication.CommandManager
    
cm.PostPrivateEvent(
	PrivateEventTypeEnum.kFileNameEvent, 
	"C:\Users\Administrator\Documents\Inventor\TempProject\part - copy.ipt")

Dim cd As ControlDefinition
cd = cm.ControlDefinitions("AssemblyPlaceComponentCmd")

cd.Execute

I hope this helps.

 

Cheers,



Adam Nagy
Autodesk Platform Services

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

Post to forums  

Autodesk Design & Make Report