Activate designview with iLogic not working.

Activate designview with iLogic not working.

JorisSteurs1246
Advocate Advocate
358 Views
2 Replies
Message 1 of 3

Activate designview with iLogic not working.

JorisSteurs1246
Advocate
Advocate

I have the following code to change the design view in a  PART document.

It is working in one part but not in another part.

The part where it is working it also behaves weirdd because it leaves the other design view also activated.

Check the pic attached.

 

Here is the code:

 

Dim odoc As PartDocument
Dim ocompdef As ComponentDefinition
odoc = ThisApplication.ActiveDocument
ocompdef = odoc.ComponentDefinition

ocompdef.RepresentationsManager.DesignViewRepresentations.Item("Bolted").Activate

iLogicVb.UpdateWhenDone = True

ThisApplication.ActiveView.Update()

 

0 Likes
359 Views
2 Replies
Replies (2)
Message 2 of 3

danijel.radenkovic
Collaborator
Collaborator

Hi,

Could you provide a part and better explanation of the isue?

 

Regards

Danijel

Inventor 2018/Windows 10 x64
If this information was helpful, please consider marking it as an Accepted Solution by using the Accept as Solution. Kudos are also gladly accepted.
0 Likes
Message 3 of 3

JorisSteurs1246
Advocate
Advocate

I've to set this topic on hold, because I found out that the code does work in a very simplified part. 

I suspect there are other rules that trigger this behavior in my original part.

I'll do a bit more homework before coming back here.

0 Likes