superslinky Posted June 14, 2011 Posted June 14, 2011 Is there a way to use the drawing properties that inserts the filename and path to just do a part of the path and without any of the filename? For example my document (idw) is called 210999 and is located in c:\vault\210210 so if in the idw I specify the template to insert the drawing properties "filename and path" it does exactly that but what if I don't want the "c:\vault" part to show up and only want the 210210 part to show up? Any ideas? Running Autodesk Inventor 2010 Routed Systems w/ latest service packs. Quote
stevsmith Posted June 15, 2011 Posted June 15, 2011 Open up the drawing template file and goto the tree expand sheet1 and right click on the border and select edit definition. This will take you into the border editor. double click on the line of text that you want the proporties to be attached to and this will bring up the text editor (you may have to right click and select edit text). Under the font there is a pulldown menu called "type". expand this and select where you would like the info to be extracted from. eg - "proporties-model" The pulldown menu next to this will become active. select "Filename" from this dropdown then click on the button with the "x" and arrow pointing down. This will add the proportie to the line of text. Exit, saving the changes as you go. That should be you. Quote
superslinky Posted June 15, 2011 Author Posted June 15, 2011 Thanks stevsmith the only problem is that pulls the whole filename. I want a variable that says to only grab part of the file location. So instead of it grabbing c:\vault\project\filename.idw I want it to just pull the "project" part of the string and exclude "c:\vault\ and the name of the file. Quote
stevsmith Posted June 15, 2011 Posted June 15, 2011 It shouldn't do, this option only lets you have the file name. The one below it takes the path & file name. Make sure that there is no additional text in the box. Quote
stevsmith Posted June 15, 2011 Posted June 15, 2011 Just realised. From the 2nd dropdown menu select "Part Number" not file name. Quote
stevsmith Posted June 15, 2011 Posted June 15, 2011 Just made a total fool of myself and noticed its not the partname your looking for but the project folder name. Quote
MarkFlayler Posted June 15, 2011 Posted June 15, 2011 You can do this with some variables with iLogic, but you will have to get that installed from the Subscription site and then learn it. As a workaround, create or map the Project Name to an iproperty and then create a text string with that iproperty\filename in the the text box. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.