best way 2 be able to add some standard Picuture easy to idw drawing ?

best way 2 be able to add some standard Picuture easy to idw drawing ?

Darkforce_the_ilogic_guy
Advisor Advisor
464 Views
7 Replies
Message 1 of 8

best way 2 be able to add some standard Picuture easy to idw drawing ?

Darkforce_the_ilogic_guy
Advisor
Advisor

Hi 

 

my colleagues want be to design a system to easy add some standard photo  to help the assembly department. 

 

how would you do this ? so it is easy to use and remember how to use it. We allready using Sketch for some standard text.  what would work bedste with Picture?

 

0 Likes
Accepted solutions (1)
465 Views
7 Replies
Replies (7)
Message 2 of 8

yan.gauthier
Advocate
Advocate

That is not the right forum for this kind of questions, but simply go to the manage tab > Insert Object > Create From File > Browse to you image

0 Likes
Message 3 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

You are kind of right. and yet not necessarily.  your way would require the user to know what picture to use and take a lot of click.  You could make a marco to add the picture, or use an globel form. I would like somthing better then inventor standard  

0 Likes
Message 4 of 8

yan.gauthier
Advocate
Advocate
Accepted solution

Oh, I did not understand you wanted to do this automatically.

 

Here is the solution from that post :

Sub InsertImage()

Dim doc As Inventor.Document
Set doc = ThisApplication.ActiveDocument
Dim oImagePath As String
oImagePath = "C:\Users\Jhoel\Testimage.png"
'Use the path to your image


Dim oleReference As ReferencedOLEFileDescriptor

Set oleReference = doc.ReferencedOLEFileDescriptors.Add(oImagePath, OLEDocumentTypeEnum.kOLEDocumentEmbeddingObject)
oleReference.BrowserVisible = True
oleReference.Visible = True
oleReference.DisplayName = Mid$(oImagePath, InStrRev(oImagePath, "\") + 1)
End Sub

 

0 Likes
Message 5 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

thank I ende up using your code in an Userform in VBA.  I needed up cutting the number of click in half.  and maybe even more. now I just have to see if the other users like this but thanks for the help

 

bt_0-1647979937266.png

 

0 Likes
Message 6 of 8

You could use "Sketched Symbols"

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 8

Darkforce_the_ilogic_guy
Advisor
Advisor

It work nice on part but I need to it work on assembly drawing as well. 

0 Likes
Message 8 of 8

yan.gauthier
Advocate
Advocate

Hi,

 

It works differently with drawing document refering to assembly file ?

0 Likes