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: 

Link Levels of Detail via API

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
thomaskennedy
650 Views, 3 Replies

Link Levels of Detail via API

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

3 REPLIES 3
Message 2 of 4

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

Message 3 of 4

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

Chris Atherton
IEng MIMechE BEng Hons
Design Automation Services Manager | Symetri
https://uk.linkedin.com/in/chrissoathe
Message 4 of 4
MegaJerk
in reply to: ChrisAtherton


@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 worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub

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

Post to forums  

Autodesk Design & Make Report