Ilogic rule to make parts visible in drawing! HLP

Ilogic rule to make parts visible in drawing! HLP

Anonymous
Not applicable
692 Views
4 Replies
Message 1 of 5

Ilogic rule to make parts visible in drawing! HLP

Anonymous
Not applicable

Hello,

 

I want a rule that makes parts visible in drawing vieuw based on name.

This rule works perfectly in assembly. how can it also work in drawing.

HLP

TNX

 
DimoDocAsDocument=ThisDoc.Document
DimoCompDefAsInventor.ComponentDefinition=oDoc.ComponentDefinition
DimoCompOccAsInventor.ComponentOccurrence

For
EachoCompOccinoCompDef.OccurrencesvoCompOcc=Component.InventorComponent(oCompOcc.Name)
IfLeft(oCompOcc.Name,2)="55"OrLeft(oCompOcc.Name,2)="51"Then
oCompOcc.Visible=False
EndIf
Next
 


0 Likes
693 Views
4 Replies
Replies (4)
Message 2 of 5

MegaJerk
Collaborator
Collaborator

It seems as if you might be able to just start using custom View Representations in your actual assembly so that you can create drawing views based on those instead. 

Autodesk Inventor Wiki Help : View Reps


Do you feel like you could solve your problem in this way? 



If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
Message 3 of 5

Anonymous
Not applicable

Hello MegaJerk,

 

In my case I must make the parts visible, because they are behind other parts.

If I can show them on the drawing, and if it's possible to change layers color  to.

All that in one rule.

 


TNX!

 

 

0 Likes
Message 4 of 5

MegaJerk
Collaborator
Collaborator

Could you show us an example of what you're trying to accomplish? Something that you've already done that is the finished product. What your describing just sounds like you could turn hidden lines on to show parts obscured by other parts. 




If my solution worked or helped you out, please don't forget to hit the kudos button 🙂
iLogicCode Injector: goo.gl/uTT1IB

GitHub
0 Likes
Message 5 of 5

Anonymous
Not applicable

Hello,

 

Attached You can find the sample!

 

TNX

 

0 Likes