Writing properties to cc-part with Inventor 2018

Writing properties to cc-part with Inventor 2018

zadazLWJJ4
Enthusiast Enthusiast
866 Views
9 Replies
Message 1 of 10

Writing properties to cc-part with Inventor 2018

zadazLWJJ4
Enthusiast
Enthusiast

Has Autodesk completely prevented writing properties to content center parts in Inventor 2018? Adding propertysets to Inventor properties worked fine in 2017 but when using same code in 2018 I get COMException everytime.

 

Any ideas, solutions?

0 Likes
Accepted solutions (1)
867 Views
9 Replies
Replies (9)
Message 2 of 10

zadazLWJJ4
Enthusiast
Enthusiast

Anyone? Is this intended change from Autodesk or bug?

0 Likes
Message 3 of 10

bradeneuropeArthur
Mentor
Mentor
Hi,

I will have a look on it o add propertysets and properties over the API.

Has it anything to do with te read-only environment of the content center file?

I have written an add in to do this before. I am changing the content centre table etc. Over the API.

If needed or interested I can help you with the code.

I will come back to it ASAP.


Regards,

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

zadazLWJJ4
Enthusiast
Enthusiast

I already have working code which works fine in Inventor 2017 but not with 2018. However, if you have idea on how to get it working with 2018 then I am very open to those ideas.

0 Likes
Message 5 of 10

bradeneuropeArthur
Mentor
Mentor
Hi,

Also if doing it another way?
I can provide you the coding doing it in the table derectly?

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

JaneFan
Autodesk
Autodesk
Accepted solution

Hello @zadazLWJJ4

 

Sorry for the inconvenience. It is a known issue internally.

We blocked the operation on write protected files for security sake previously, now since that many customers have such requirement, we will provide a solution to solve it. The fix will be released soon. 




Jane Fan
Inventor/Fusion QA Engineer
Message 7 of 10

bradeneuropeArthur
Mentor
Mentor

Hi,

I am doing the following:

I am changing the ContentCenter Table directly with The API.

Maybe this is the solution to your problems too;

Dim oFamily As ContentFamily
				
				For Each oFamily In oContentNode.Families
            Debug.Print(oFamily.DisplayName)

            If oFamily.DisplayName = "Your ContentCenter Family Name" Then
				Try
                    oFamily.TableColumns.Add("My_Description", "My_Description [Custom]", ValueTypeEnum.kStringType, , "=" + "<Description>&" + """ """ + "&{PARTNUMBER}", "{D5CDD505-2E9C-101B-9397-08002B2CF9AE}", "My_Description")
                Catch ex As Exception

                End Try
                
                End Try

                Dim oContentTableColumn As ContentTableColumn
                For Each oContentTableColumn In oFamily.TableColumns

                    Select Case oContentTableColumn.DisplayHeading.ToUpper

                        Case "My_DESCRIPTION"
                            
                            oContentTableColumn.DisplayHeading = "My_Description [Custom]"
							
							
                            oContentTableColumn.Expression = "=" + "<Description>&" + """ """ + "&{PARTNUMBER}"
                        
                                       
                    End Select
                
                Next

                oFamily.Save()
            End If

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 10

zadazLWJJ4
Enthusiast
Enthusiast

@JaneFanany estimations when that fix might be coming?

0 Likes
Message 9 of 10

ben_knutsen
Observer
Observer

Hi Autodesk.  We are also waiting for a solution here. Any information about when it will be available?

 

0 Likes
Message 10 of 10

CattabianiI
Collaborator
Collaborator

@ben_knutsen, Autodesk already provided a solution in the last Inventor Update 2018.2


MjDeck wrote:

There is an option. It's available only in the recently released Inventor 2018.2 Update.
To enable it, set the Inventor.Application._LibraryDocumentModifiable property to true. Example:

ThisApplication._LibraryDocumentModifiable = True


Remember to set back the property to false once you did your changes, the property they added to workaround this problem is quite powerful and makes the files modifiable to the end user too.