Inventor General Discussion

Inventor General Discussion

Reply
Product Support
pierre.masson
Posts: 227
Registered: ‎05-27-2010
Message 11 of 14 (200 Views)

Re: Suppress Component in multiple Level of Details

03-23-2012 08:59 AM in reply to: gnick

Hi

 

That's true. I understand your issue now. The macro could solve this, but it might take a lot of time if have really huge assemblies.

You can probably try to lower the Display and Hardware Settings in Application options (just for Running the code).

Pierre Masson Product Support Specialist PS MFG EMEA Autodesk, Inc.
Product Support
pierre.masson
Posts: 227
Registered: ‎05-27-2010
Message 12 of 14 (200 Views)

Re: Suppress Component in multiple Level of Details

03-23-2012 08:59 AM in reply to: gnick

 

Please submit us your feedback here, it is an interesting improvement request :

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1109794

Pierre Masson Product Support Specialist PS MFG EMEA Autodesk, Inc.
Valued Contributor
floccipier
Posts: 55
Registered: ‎04-11-2011
Message 13 of 14 (194 Views)

Re: Suppress Component in multiple Level of Details

03-24-2012 11:46 PM in reply to: pierre.masson

It shows following error

Compiler error:

Syntax error

 

with following line of code shown in red

 

For Each lodrep In oCompDef.RepresentationsManager.LevelOfDetailRepre?sentations

 

Please suggest what to do.

 

Regards,

Sajid Mahmood

Product Support
pierre.masson
Posts: 227
Registered: ‎05-27-2010
Message 14 of 14 (185 Views)

Re: Suppress Component in multiple Level of Details

03-26-2012 12:23 AM in reply to: floccipier

Hello

 

You pasted this text :

 

For Each lodrep In oCompDef.RepresentationsManager.LevelOfDetailRepre​?sentations

 

There is a question mark in Repre​?sentations. If this is also in your code, then you need to remove it.

Pierre Masson Product Support Specialist PS MFG EMEA Autodesk, Inc.
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 or visit the Installation and Licensing Forum to get help installing your software.