Hidden/Show a JPEG file in an Inventor Drawing

Hello

I'm looking for a way to hide/show a JPEG file, in an Inventor drawing, using Ilogic code.

The .visible property is not allowed on a drawing, and the tree in the rules doesn't even show the "Third-Party" part where my image is located.

Thank you in advance.

Arnaud

 


imagecachee.jpg

Hello

Is this image in a sketch on the drawing or in a room that is being drawn up?

Hello

 

My image is in the drawing, not in a sketch or in a room.

I inserted it by this way:

Manage --> Insert Object --> Create from File

(I noticed that in the manage tab there is --> insert

an image option but this one is not active on my drawing).

 

My goal is to offer a choice to the user to choose the images to display on his drawing (Logo, Domain...)

Hello

Apparently my question is not answered, so I'll go through a roundabout way:

Is it possible to hide or show a sketch in a drawing  with ilogic code?

Because by inserting my images into the sketches from a .dwg format I would only have to show or hide the sketches and no longer the images.

Thanks in advance

 

Arnaud

Hello

In fact, I was thinking exactly about this second solution via my previous messages.

Unfortunately I couldn't help you more with the iLogic code but I found this link:

https://forums.autodesk.com/t5/inventor-general-discussion/ilogic-sketch-visibility/td-p/3352019

 

And also this:

http://www.mastergraphics.com/wordpress/2013/controlling-sketch-visibility-with-ilogic/

 

Well and in case it can help you, here is my google search:

https://www.google.fr/#q=hide+sketch+drawing+ilogic+inventor

 

Well  if it works,  I think it's really good! It's not a hack, but a trick that will be useful to other ;)!

1 Like

Thank you for your answers, but unfortunately for me none of the links mentioned work on Inventor 2015.

So I did a "hacking" which consists of creating out-of-field views (out of the sheet) of minimal size (framing tool), create a sketch per view and then insert the files into sketches, 1 file per sketch.

Then using this code I show/hide the views according to Boolean variables checked by the user.

I don't like it  too much but it's the only way I'm able to achieve unfortunately.

If SalleB =True Then
ActiveSheet.View("VUE68"). View.Suppressed = False
Else
ActiveSheet.View("VUE68"). View.Suppressed = True
End If


If SansSalleB =True Then
ActiveSheet.View("VUE67"). View.Suppressed = False
Else
ActiveSheet.View("VUE67"). View.Suppressed = True
End If

If ZeroChgt =True Then
ActiveSheet.View("VUE72"). View.Suppressed = False
Else
ActiveSheet.View("VUE72"). View.Suppressed = True
End If

 See you soon.

1 Like