- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @darren.lees. This is one of those things where how to accomplish this all depends on how you have (or choose to) set things up within your TitleBlockDefinition. There are usually 3 possible routes for including 'Author' in the TitleBlock...(1) TextBox in which a 'Link' is included to the 'Author' iProperty of 'the model', (2) TextBox in which a 'Link' is included to the 'Author' iProperty of 'the drawing', (3) TextBox in which a 'PromptedEntry' is included. If it is a PromptedEntry, then every time you add a new TitleBlock to a sheet based on that TitleBlockDefinition, it will instantly prompt you to manually fill in those PromptedEntries. It sounds like you want Option 2 mentioned above, but I do not know if that is how you currently have your TitleBlockDefinition sketch set-up. Once that is set-up that way, you would just need an automated way to fill in the value of the drawing's 'Author' iProperty. I that property can either be automatically copied from 'the model' to the drawing, by some built-in document settings. But it sounds like that is not what you want. There are two obvious options left...(1) use an external iLogic rule, triggered by the 'New Document' event, that will prompt the user to fill in an InputBox, that will then be used to fill in the iProperty, (2) use an external iLogic rule, triggered by 'New Document' event, that pulls the information from the Application Options, General Tab, User Name setting, and uses that to fill in the iProperty automatically for you, based on whichever user creates the new drawing.
Edit: And below is a fairly basic iLogic rule that could be used to automatically set the 'Author' iProperty of the drawing to the UserName of the current user, pulled from the application options, general tab.
Dim oDDoc As DrawingDocument = TryCast(ThisDoc.Document, Inventor.DrawingDocument)
If oDDoc Is Nothing Then Logger.Debug(iLogicVb.RuleName & " exited (wrong DocumentType)") : Return
oDDoc.PropertySets.Item(1).Item(3).Value = ThisApplication.GeneralOptions.UserName
oDDoc.Update2(True)
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS)
.
Wesley Crihfield
(Not an Autodesk Employee)