Change parameter depending of view

Change parameter depending of view

atomic.lex
Enthusiast Enthusiast
342 Views
1 Reply
Message 1 of 2

Change parameter depending of view

atomic.lex
Enthusiast
Enthusiast

 

Hello there and happy new year !

 

I've tryied to change a parameter depending of view, unfortunately unsuccessful. Any ideas?

 

Dim oAsmCompDef As AssemblyComponentDefinition = ThisApplication.ActiveDocument.ComponentDefinition
Dim oCompOcc As Inventor.ComponentOccurrence 

oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("min").activate
	Distance_A = 10
oAsmCompDef.RepresentationsManager.DesignViewRepresentations.Item("max").activate
	Distance_A = 15

 

All the best for you

 

Alex

0 Likes
343 Views
1 Reply
Reply (1)
Message 2 of 2

dgreatice
Collaborator
Collaborator

Hi,

 

I'm try you code and work.

 

Can you provide screenshot?

 

and better all of you code insert to here.

 

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes