Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
pedro.lopezMGBEC
268 Views, 5 Replies

Automating the process of importing a part as a reference to a part file and transfer all properties to iproperties

Hello there, 

I am trying to create a logic rule to automate importing a part as a reference (from Solidege/Solidworks/catia/pro-e) and then importing all the properties to the part file with logic; any ideas will be greatly appreciated. 

I've found this.

' Assuming transfer a custom property named "PartNumber" from Solid Edge to Inventor
Dim importedPart As PartDocument
importedPart = ThisDoc.Document

' Access the custom property from Solid Edge
Dim seProperty As String
seProperty = importedPart.PropertySets.Item("Custom Properties").Item("PartNumber").Value

' Transfer the property to an Inventor custom property
ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties").Add("PartNumber", seProperty)