Can anybody help???
I have the following lines of code in an Inventor VBA module....
Set oPartNumberProperty = oCompDef.Document.PropertySets.Item("Design Tracking Properties").Item("Part Number")
PartNumber = Trim(oPartNumberProperty.Value)
This will give me the part number!
How can I get the path to that part number?
For example,
If the part number is FRED
how can I get the directory where this part exists?
eg C:\Test Folder\Test File\FRED.IPT [FOR EAMPLE ONLY!!!}
Many thanks in advance!!!!
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
Hi isocam,
Just to clarify, I assume your Part Number iProperty and your File Name are the same, but keep in mind that when you are accessing the iProperty value it knows nothing of the filename and path.
I think you're looking for the FullFileName property.
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com