Inventor Customization

Reply
Mentor
j.vanderheijden
Posts: 236
Registered: ‎06-13-2011
Message 1 of 2 (216 Views)

place iLogic Component

216 Views, 1 Replies
12-28-2012 09:22 AM

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...
ADN Support Specialist
adam.nagy
Posts: 445
Registered: ‎03-26-2007
Message 2 of 2 (166 Views)

Re: place iLogic Component

01-15-2013 08:38 AM 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
Developer Technical Services
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube