0% found this document useful (0 votes)
94 views4 pages

Map Family's Table Column To Inventor Property - Manufacturing DevBlog

The document describes how to map a family table column in Inventor to a property. It explains that you can investigate the mapping by doing it in the UI first. It then provides code to find the property set and property IDs that a specific table column is mapped to using the Inventor API. The code gets the property set ID and property ID for the "Size" table column that was mapped to the "Description" design property.

Uploaded by

VitorHugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views4 pages

Map Family's Table Column To Inventor Property - Manufacturing DevBlog

The document describes how to map a family table column in Inventor to a property. It explains that you can investigate the mapping by doing it in the UI first. It then provides code to find the property set and property IDs that a specific table column is mapped to using the Inventor API. The code gets the property set ID and property ID for the "Size" table column that was mapped to the "Description" design property.

Uploaded by

VitorHugo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Map family's table column to Inventor property - Manufacturing DevBlog http://adndevblog.typepad.com/manufacturing/2016/07/map-familys-t...

1 de 4

Manufacturing DevBlog
(http://adndevblog.typepad.com
/manufacturing/)
The resource for software developers working with Design, Lifecycle and Simulation
technologies from Autodesk.

07/13/2016

Map family's table column to Inventor


property
By Adam Nagy (http://adndevblog.typepad.com/manufacturing
/adam-nagy.html)
When trying to figure out how to do something in the Inventor API,
then almost always the best way to go is: do it in the UI, investigate in
the API.
So I registered in the Content Center my own part, created a
SIZE property then mapped it to Project.Description (Design
Tracking Properties:Description):

(http://adndevblog.typepad.com
/.a/6a0167607c2431970b01b8d204b365970c-popup)
Now using the API I can find out how the SIZE property got mapped
to Project.Description property:

20/01/2017 23:17

Map family's table column to Inventor property - Manufacturing DevBlog http://adndevblog.typepad.com/manufacturing/2016/07/map-familys-t...

2 de 4

Public Sub CCtest()


Dim cc As ContentCenter
Set cc = ThisApplication.ContentCenter
Dim ctvn As ContentTreeViewNode
Set ctvn = cc.TreeViewTopNode. _
ChildNodes("Features"). _
ChildNodes("English"). _
ChildNodes("Block")
Dim cf As ContentFamily
Set cf = ctvn.Families(1)
Dim ctc As ContentTableColumn
Set ctc = cf.TableColumns("Size")
If ctc.HasPropertyMap Then
Dim psid As String
Dim pid As String
Call ctc.GetPropertyMap(psid, pid)
Debug.Print "PropertySetId = " & psid
Debug.Print "PropertyId = " & pid
End If
End Sub
Result:
PropertySetId = {32853F0F-3444-11d1-9E93-0060B03
C1CA6}
PropertyId = 29
So basically you just have to look for the given property set in
Document.PropertySets and use its InternalName property,
then look for the property inside it and use the Property's PropId.
Posted at 05:14 AM in Adam Nagy (http://adndevblog.typepad.com/manufacturing
/adam-nagy/), Inventor (http://adndevblog.typepad.com/manufacturing
/inventor/) | Permalink (http://adndevblog.typepad.com/manufacturing/2016/07
/map-familys-table-column-to-inventor-property.html)

20/01/2017 23:17

Map family's table column to Inventor property - Manufacturing DevBlog http://adndevblog.typepad.com/manufacturing/2016/07/map-familys-t...

3 de 4

(http://twitter.com/share?url=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&
text=Map%20family's%20table%20column%20to%20Inven...)
(https://plus.google.com/share?url=http://adndevblog.typepad.com
/manufacturing/2016/07/map-familys-table-column-to-inventor-property.html)
(http://www.facebook.com/sharer.php?u=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html)

Comments
Comment below or sign in with
Typepad (http://www.typepad.com
/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&fp=f38d2bb0c8fff53cfd76ed2e3773517f&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&post_uri=http:
//adndevblog.typepad.com/manufacturing/2016/07/map-familys-table-columnto-inventor-property.html)
Facebook (http://www.typepad.com
/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&fp=f38d2bb0c8fff53cfd76ed2e3773517f&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=facebook&post_uri=http://adndevblog.typepad.com/manufacturing
/2016/07/map-familys-table-column-to-inventor-property.html)
Twitter
(http://www.typepad.com/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&fp=f38d2bb0c8fff53cfd76ed2e3773517f&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=twitter&post_uri=http://adndevblog.typepad.com/manufacturing
/2016/07/map-familys-table-column-to-inventor-property.html)
(http://www.typepad.com/sitelogin?uri=http%3A%2F

Google+

%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&fp=f38d2bb0c8fff53cfd76ed2e3773517f&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&service=gplus&
post_uri=http://adndevblog.typepad.com/manufacturing/2016/07/map-familystable-column-to-inventor-property.html) and more... (http://www.typepad.com
/sitelogin?uri=http%3A%2F
%2Fadndevblog.typepad.com%2Fmanufacturing%2F2016%2F07%2Fmap-familystable-column-to-inventor-property.html&fp=f38d2bb0c8fff53cfd76ed2e3773517f&
view_uri=https%3A%2F%2Ffanyv88.com%3A443%2Fhttp%2Fprofile.typepad.com%2F&via=blogside&
service=openid&post_uri=http://adndevblog.typepad.com/manufacturing
/2016/07/map-familys-table-column-to-inventor-property.html)

20/01/2017 23:17

Map family's table column to Inventor property - Manufacturing DevBlog http://adndevblog.typepad.com/manufacturing/2016/07/map-familys-t...

4 de 4

(URLs automatically linked.)

Email address is not displayed with comment.

(http://www.typepad.com/)
Manufacturing DevBlog (http://adndevblog.typepad.com/manufacturing/)

20/01/2017 23:17

You might also like