Property Mapping - Adding Custom Field/Box

Property Mapping - Adding Custom Field/Box

Anonymous
Not applicable
1,246 Views
9 Replies
Message 1 of 10

Property Mapping - Adding Custom Field/Box

Anonymous
Not applicable

Hey,

 

I require a hand adding a custom property into my property mapping tool. I want to be able to map one of my custom properties to in inventor to a property within Solidworks. When i open the XML file to add this property following the same pattern within the XML file it just doesn't show up, any ideas? 

 

Original XML code

 

-->
<PropertiesMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1">
<Property Name="Title">
<Source Name="Title" />
</Property>
<Property Name="Subject">
<Source Name="Subject" />
</Property>
<Property Name="Author">
<Source Name="Author" />
</Property>
<Property Name="Keywords">
<Source Name="Keywords" />
</Property>
<Property Name="Comments">
<Source Name="Comments" />
</Property>
<Property Name="Last Saved By">
<Source Name="Last Saved By" />
</Property>
<Property Name="Revision Number">
<Source Name="Revision" />
</Property>
<Property Name="Category" />
<Property Name="Manager" />
<Property Name="Company">
<Source Name="CompanyName" />
</Property>
<Property Name="Creation Date">
<Source Name="Created" />
</Property>
<Property Name="Part Number">
<Source Name="Part Number SW" />
</Property>
<Property Name="Project">
<Source Name="Project Name SW" />
</Property>
<Property Name="Cost Center" />
<Property Name="Checked By">
<Source Name="Checkedby" />
</Property>
<Property Name="Checked Date">
<Source Name="CheckedDate" />
</Property>
<Property Name="Eng. Approved By">
<Source Name="EngineeringApproval" />
</Property>
<Property Name="Eng. Approved Date">
<Source Name="EngAppDate" />
</Property>
<Property Name="Status">
<Source Name="Status" />
</Property>
<Property Name="Web Link" />
<Property Name="Description">
<Source Name="Description SW" />
</Property>
<Property Name="Vendor">
<Source Name="Team SW" />
</Property>
<Property Name="Mfg. Approved By">
<Source Name="ManufacturingApproval" />
</Property>
<Property Name="Mfg. Approved Date">
<Source Name="MfgAppDate" />
</Property>
<Property Name="Estimated Cost">
<Source Name="Cost" />
</Property>
<Property Name="Design State" />
<Property Name="Designer">
<Source Name="Drawnby" />
</Property>
<Property Name="Engineer">
<Source Name="Engineer SW" />
</Property>
<Property Name="Authority" />
<Property Name="Stock Number">
<Source Name="Project Number SW" />
</Property>
<Property Name="Last Updated With" />
<Property Name="Checked Out By" />
<Property Name="Checked Out" />
<Property Name="Checked In By" />
<Property Name="Checked In" />
<Property Name="Checkout Workgroup" />
<Property Name="Checkout Worksspace" />
<Property Name="Next Version" />
<Property Name="Current Version" />
<Property Name="Previous Version" />
<Property Name="Material" />
<Property Name="Density">
<Source Name="Density" />
</Property>
<Property Name="Mass Unit" />
<Property Name="Mass">
<Source Name="Mass" />
</Property>
<Property Name="Volume">
<Source Name="Volume" />
</Property>
</PropertiesMap>

 

My custom property is called ' Lakier. ' How would i do this? and or why is it not working? 

0 Likes
1,247 Views
9 Replies
Replies (9)
Message 2 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

Hello @Anonymous,

 

Hoping that below blog link would be helpful in custom iProperties.

 

http://modthemachine.typepad.com/my_weblog/2010/02/custom-iproperties.html

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 10

Anonymous
Not applicable

No help sorry, thank you anyway 

0 Likes
Message 4 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

Hello @Anonymous,

 

What is "my property mapping tool"? is it customized tool?

 

How to generate XML file which is posted above?

 

Are you copying custom iProperty from Inventor to Solidworks?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 10

Anonymous
Not applicable

The Property mapping tool is built n Inventor, it appears when you import a file as certain CAD formats. The XML is found opening one of inventor own XML file that builds the table you can fill in with inventor. The XML is what i believe is used to build this table, so i make the assumption i can rebuild it to add a new feel. 

 

Capture.JPG

0 Likes
Message 6 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

There is a tool to export solidworks iProperties to Inventor.

 

https://apps.autodesk.com/en/Detail/Index?id=5614433388265649950&appLang=en&os=Win32&autostart=true

 

Demo is shown in below video link.

 

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

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 7 of 10

Anonymous
Not applicable

Thanks for the alternative, but i still require my question to be answered. The import add on i've had for a while but i have an error message when trying to import properties 'failed to open Solidworks document. Make sure that is isn't used by other application.'

0 Likes
Message 8 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

We think, a workaround would be using both Solidworks API and Inventor API in a same application. Solidworks API read configuration/properties and Inventor API to add it in custom iProperties.

 

Similar issue is discussed in below forum link.

 

https://forums.autodesk.com/t5/inventor-customization/problem-importing-solidworks-files/m-p/7874696

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 9 of 10

Anonymous
Not applicable

I am able to map custom SW properties to unused inventor properties, i will then run code to copy these properties to custom properties with inventor.

 

I will ask, 

 

I want code to copy:

 

Standard iProperty 1 - Custom iProperty 1

 

Them

 

Standard iProperty 2 - Custom iProperty 2

 

Can this be done for BOM of an assembly or all open parts/assemblies via iLogic? 

0 Likes
Message 10 of 10

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

Solidworks API dlls can be added as Reference to iLogic. Below article talks about AddReference to iLogic.

 

https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2017/ENU/Inventor-Help/files/GUID-32B66838-22E4-4A0A-B5BB-862350C76B36-htm.html

 

By using Solidworks API and Inventor API, standard property of solidworks can be mapped to Custom iProperties of Inventor.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes