Inventor Customization

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

Link Levels of Detail via API

256 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

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

Distinguished Contributor
thomaskennedy
Posts: 113
Registered: ‎09-27-2010
Message 2 of 4 (252 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: 41
Registered: ‎01-18-2010
Message 3 of 4 (245 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
Valued Mentor
MegaJerk
Posts: 277
Registered: ‎01-26-2011
Message 4 of 4 (236 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
--------------------------------------------------------------------------------------
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.