Transparent background

Transparent background

Anonymous
Not applicable
3,965 Views
16 Replies
Message 1 of 17

Transparent background

Anonymous
Not applicable
Hello,
I'm looking for a way to export images with a transparent background using iLogic. Is it possible?
0 Likes
Accepted solutions (1)
3,966 Views
16 Replies
Replies (16)
Message 2 of 17

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi,

 

This will do:

 

Public Sub SaveAsJPG()
    ' Get the active view.
    Dim oView As View
    Set oView = ThisApplication.ActiveView
    
 'Create a new NameValueMap Object
    Dim oOptions As NameValueMap
    Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap '.TransientObjects.CreateNameValueMap
    
    oOptions.Value("TransparentBackground") = True

    Call oView.SaveAsBitmapWithOptions("C:\Temp\TestB.bmp", 0, 0, oOptions)
End Sub

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

Message 3 of 17

Anonymous
Not applicable

Thank you for your reply but I'm working on Inventor 2015 and it doesn't seems to work.

I've got a run-time error '438'

Object doesn't support this property or method...

0 Likes
Message 4 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Could you please make the same screenshot as me:

 

Export Bmp.PNG

I am using 2018 inventor.

 

let us check the difference.

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 5 of 17

Anonymous
Not applicable

Sans titre.jpg

0 Likes
Message 6 of 17

Anonymous
Not applicable

Sans titre2.jpg

0 Likes
Message 7 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

The same screenshot please, if you select BMP files!!

 

Seems that this option is not available for 2015 of inventor!!!!

 

What would you like to do with the Picture?

 

 

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 8 of 17

Anonymous
Not applicable

We give our client a view of what they've bought to permitt them to place it on a photo...

 

I also tried to do this with Inventor Studio.

It is possible but the problem is to set the Inventor Studio's camera's position.

 

I'd like to make it fit to the current view with iLogic or Vba... Is it possible ?

0 Likes
Message 9 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Why must it be transparent than?

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 10 of 17

Anonymous
Not applicable

Is there a way to export a picture of an Inventor assembly without background ?

0 Likes
Message 11 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

You could remove the background in "Word"

 

https://www.youtube.com/watch?v=qTGdFP8gRVs

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 12 of 17

Anonymous
Not applicable

Sorry for my English but is there a sample to do this in Inventor using Word Application.

 

I already export parameter from Inventor to word with this method.

 

'Create the Word Application Object
wordApp = Interaction.CreateObject("Word.Application")

 

0 Likes
Message 13 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

        Dim myBitmap As New Bitmap("C:\TEMP\ForumTestsVba.bmp")

        myBitmap.MakeTransparent()

        myBitmap.Save("C:\TEMP\ForumTestsVba2.bmp")

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 14 of 17

Anonymous
Not applicable

Thank for your quick replies but I've tried your code in the iLogic module and in Vba module but doesn't seem to work...

 

 The 'Bitmap' Type is not defined....

 

 

Another way to do what I want, would be to launch the command in the picture attached.

 

Is it possible to use iLogic or Vba to define Camera on Current View in Inventor Studio?

0 Likes
Message 15 of 17

Anonymous
Not applicable

I'd like to thank you for all.

 

Finally, I've found another way to do.

0 Likes
Message 16 of 17

bradeneuropeArthur
Mentor
Mentor

Hi,

 

Now I am curious, how did you do it?

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 17 of 17

Anonymous
Not applicable

I'm using the interop.InventorStudioLib.dll as shown in this link

 

https://forums.autodesk.com/t5/inventor-customization/how-do-i-access-inventor-studio-elements/td-p/...

 

I only have to render manually with options a first time in Inventor Studio and then, when I launch the iLogic rule, as parameters are saved, I don't need to precise them again.

 

It's not really professionnal but it works  😉

 

Thanks again for your quick replies.