iLogic to Tie Engraved or Embossed Text to Part Number iProperty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone:
I'm happy to report that after soaking up tons and tons of information here, I finally have something to actually contribute to the masses......
I had wanted to find a way to engrave/emboss the part number on a part model and have it be parametrically tied to the part number iProperty. Since it doesn't appear that I can create a text box and insert the iProperty directly, here's what I did to work around this. (I setup my part templates to have this out of the box....)
1. Within, the IPT file, add a user text parameter called "PartNo" and set its initial value to any text value.
2. Create your sketch for your text to be engraved. Insert the User parameter you just created.
3. Create the engraving/embossing for your text.
4. Create the following iLogic rule:
' Requires a User Text Parameter called "PartNo" prior to running ' Set the appropriate event trigger to taste If Parameter("PartNo") <> iProperties.Value("Project", "Part Number") Then Parameter("PartNo") = iProperties.Value("Project", "Part Number") InventorVb.DocumentUpdate() End If
5. I set this rule to fire using the "iProperty Change" event trigger. So if the iProperty is set or changed, your text will update. Obviously, you can set this to run with whatever trigger you like.
Use it in good health!