Code to change Content Center default Save Preview Picture to "Active ISO View"

Code to change Content Center default Save Preview Picture to "Active ISO View"

Jason.Rugg
Collaborator Collaborator
1,038 Views
4 Replies
Message 1 of 5

Code to change Content Center default Save Preview Picture to "Active ISO View"

Jason.Rugg
Collaborator
Collaborator

Looking for a code to change a Content Center part Save Preview Picture thumbnail from the default "Import From File" to "Active Component Iso View on Save".

0 Likes
Accepted solutions (1)
1,039 Views
4 Replies
Replies (4)
Message 2 of 5

Curtis_Waguespack
Consultant
Consultant

Hi Jason, 

 

Hope things are going well with you!

 

So is the content center part of this issue the main problem here, because the file is Read Only?

 

Otherwise something like the code at this link would work:

https://forums.autodesk.com/t5/inventor-forum/i-want-to-change-thumbnail-color/m-p/6788487#M626185

 

Can you confirm that the CC read only status is the issue?

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

EESignature

0 Likes
Message 3 of 5

Jason.Rugg
Collaborator
Collaborator

Hey Curtis, I am doing well and you? Could you send me a private message? I will take a look at the links you posted in just a bit.

0 Likes
Message 4 of 5

Jason.Rugg
Collaborator
Collaborator

Curtis,

 

So if I use the following portion of the code from your link, this does set the thumbnail preview to the ISO view but to trigger the rule I have to open the individual parts and run the rule, save and close for the thumbnail to change. The ultimate goal would be to be able to place content center parts in an assembly, save the assembly and close and all of the CC thumbnail previews would be automatically set to the ISO view. From content center we are placing as custom.

 

Not sure if you remember me or not but I took several classes with you at D3 here in KC.

 

Version:1.0 StartHTML:00000145 EndHTML:00000955 StartFragment:00000294 EndFragment:00000923 StartSelection:00000294 EndSelection:00000294SyntaxEditor Code Snippet

oDoc = ThisApplication.ActiveEditDocument

'set iproperty to use ISO view on save
oDoc.SetThumbnailSaveOption _
(ThumbnailSaveOptionEnum.kActiveComponentIsoViewOnSave)

'save the file
oDoc.Save

 

Message 5 of 5

Jason.Rugg
Collaborator
Collaborator
Accepted solution

It's been forever since I messed with this and I think I got it taken care of.

0 Likes