Inventor Customization

Reply
Distinguished Contributor
thomaskennedy
Posts: 112
Registered: ‎09-27-2010
Message 1 of 4 (241 Views)
Accepted Solution

Link Levels of Detail via API

241 Views, 3 Replies
04-23-2012 03:46 AM

Hi all,

 

Is it possible to use the 'Link Levels of Detail' command via the API ?

 

I can activate the command by using the CommandManager

 

oContDef = ThisApplication.CommandManager.ControlDefinitions.Item("AssemblyBonusTools_LinkLODsCmd")
oContDef.Execute

 

But the command then requires a UI selection - I want to select the iLogic LOD.

 

I've tried using the CommandManager.PostPrivateEvent but to no avail

 

Does anybody know if this is possible?

 

Thanks

 

Tom

Distinguished Contributor
thomaskennedy
Posts: 112
Registered: ‎09-27-2010
Message 2 of 4 (237 Views)

Re: Link Levels of Detail via API

04-23-2012 04:13 AM in reply to: thomaskennedy

On second thoughts I can just iterate through the assembly and set each occ to the iLogic LOD.

Active Contributor
chris.atherton
Posts: 40
Registered: ‎01-18-2010
Message 3 of 4 (230 Views)

Re: Link Levels of Detail via API

04-23-2012 04:37 AM in reply to: thomaskennedy

Tom I have some code for this I'll email you

Chris Atherton
AMIMechE BEng Hons
Senior Applications Engineer

Symetri - UK MFG Reseller
http://www.symetri.co.uk

Join my network on LinkedIn: http://lnkd.in/XFu-q7
Autodesk Product Presentations: http://prezi.com/user/ChrisAtherton/
Twitter: @chrissoathe

Symetri, RCM Business Centre, Dewsbury Road, Ossett, West Yorkshire, WF59ND - Registered in England and Wales No. 2379476
Mentor
MegaJerk
Posts: 265
Registered: ‎01-26-2011
Message 4 of 4 (221 Views)

Re: Link Levels of Detail via API

04-23-2012 05:37 AM in reply to: chris.atherton

chris.atherton wrote:

Tom I have some code for this I'll email you



You should post it here, so that others can learn if they have the same question. 

--------------------------------------------------------------------------------------

If my solution seems to remedy your problem, please press the Accept Solution button, -
as it increases my power levels and will eventually help to elevate me towards outer space.

Check out my iLogic injection tool here : http://goo.gl/ce1Qg
--------------------------------------------------------------------------------------

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
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

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