Inventor General Discussion

Inventor General Discussion

Reply
Mentor
CAD-One
Posts: 762
Registered: ‎10-26-2008
Message 1 of 6 (693 Views)
Accepted Solution

Emboss File Name on Part

693 Views, 5 Replies
01-11-2012 06:04 AM

In a part, I create a sketch, add annotation Type in the file name. Then create an Emboss feature using this sketch.

 

How can I add the file name property to the text. I want the the emboss to update to new file name if I rename the file.

C1
Inventor Professional 2015
Vault Professional 2015

Hi CAD-One,

 

Mark Randa wrote some iLogic to do this (http://opendesignproject.org/).

 

I'm having some trouble getting his link to work, but I've attached an example file using his code, as well as a link to a video of it being set up: http://youtu.be/Y5a8IYyxFLo

 

In the example, you can change the part number iProperty and then save the file to run the ilogic rule. The attached file was created in Inventor 2010, in case some one with an older version is interested also.

 

Also, I'd look for this to be do-able "out of the box" in a future release of Inventor. :smileywink:

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

*Expert Elite*
Curtis_Waguespack
Posts: 2,987
Registered: ‎03-08-2006
Message 2 of 6 (679 Views)

Re: Emboss File Name on Part

01-11-2012 07:07 AM in reply to: CAD-One

Hi CAD-One,

 

Mark Randa wrote some iLogic to do this (http://opendesignproject.org/).

 

I'm having some trouble getting his link to work, but I've attached an example file using his code, as well as a link to a video of it being set up: http://youtu.be/Y5a8IYyxFLo

 

In the example, you can change the part number iProperty and then save the file to run the ilogic rule. The attached file was created in Inventor 2010, in case some one with an older version is interested also.

 

Also, I'd look for this to be do-able "out of the box" in a future release of Inventor. :smileywink:

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Mentor
CAD-One
Posts: 762
Registered: ‎10-26-2008
Message 3 of 6 (632 Views)

Re: Emboss File Name on Part

01-13-2012 07:51 AM in reply to: Curtis_Waguespack

Great help. Thanks

C1
Inventor Professional 2015
Vault Professional 2015
New Member
Mtywtts
Posts: 1
Registered: ‎01-30-2012
Message 4 of 6 (483 Views)

Re: Emboss File Name on Part

10-23-2012 08:55 AM in reply to: CAD-One

I was able to get this to work on an ipart that is vaulted. What isn't working for me is running the rule so the appropriate text is visible depending on which instance of the ipart is placed into an assembly. I would think that there should be some way to make the rule run when each of the ifactory parts are generated?

 

Marty Watts

Becker/SMC

 

Inventor 2012

Mentor
Doug_DuPont
Posts: 220
Registered: ‎09-23-2008
Message 5 of 6 (161 Views)

Re: Emboss File Name on Part

07-03-2014 07:43 AM in reply to: Curtis_Waguespack

I don't see a easy way of doing this yet. Am I wrong?

Douglas DuPont
Inventor 2013
GeForce GTX 580
Windows 7 64 Bit
*Expert Elite*
Curtis_Waguespack
Posts: 2,987
Registered: ‎03-08-2006
Message 6 of 6 (148 Views)

Re: Emboss File Name on Part

07-03-2014 08:35 AM in reply to: Doug_DuPont

Hi Doug_DuPont,

 

Starting with Inventor 2013 you can create a user parameter and then use that parameter in a sketch text field.

 

So the steps would be something like this:

  1. Go to the Manage tab > Parameters button.
  2. Create a User Parameter as a Text type parameter.
  3. Start a new sketch.
  4. Create a Text object in the sketch.
  5. Change the Source dropdown from Model Parameters to User Parameters.
  6. Select the Text type User Parameter you created in step 2.
  7. Click the "Add Parameter" button to push the parameter to the text field.
  8. Click OK to create the text field.
  9. Create an Emboss of Extrude feature using the text.
  10. Change the User Parameter by using Manage tab > Parameters button.

         > OR <

    Create some iLogic code to:

    • change the user parameter value based on your input
    • or to change the parameter based on a list of values
    • or to always be the File Name
    • or to always be the Part Number

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com



  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.





Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!