Prompt to fill out property fields/field text for the title block in inventor drawing

Prompt to fill out property fields/field text for the title block in inventor drawing

ober2558
Enthusiast Enthusiast
510 Views
2 Replies
Message 1 of 3

Prompt to fill out property fields/field text for the title block in inventor drawing

ober2558
Enthusiast
Enthusiast

I am looking for a way to use iLogic so that when a drawing is created a prompt is pulled up for the user to populate the property fields located in the title block if they are not already filled out. Please provide any information or suggestions you can. I am not very skilled with iLogic so detailed descriptions and code examples are much appreciated. Thank you!

0 Likes
511 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

Hi @ober2558.  If you see the a tab beside your "Model" tab that is labeled "Forms", click on that tab so that you can see its contents.  If you do not see it, then go to your View tab (on the main top ribbon), then click on User Interface tool, then make sure you check the checkbox beside 'iLogic', 'iLogic Log'.   This tab will usually be empty in a 'New' document, because this is where local forms are kept (forms that are saved within that document only).  You will want to create a new Form there, by right-clicking somewhere in the open area of the main part of that tab (not on the name of the tab), and choose 'Add Form'.  While that dialog is open, select 'iProperties' (near upper left of dialog), which will show a list of available iProperties you can choose from.  Now drag & drop any of those properties over into the upper right area of the dialog, and that will create line items for those iProperties, and they will show up in the main form.  When you click OK on that dialog, anything you put into that upper right area will now be shown in the form as interactive controls for you to view or edit those values.  Not all iProperties can be changed.  Some are 'ReadOnly'.  Once you have the form looking the way you want, then we can move on to creating an iLogic rule that will cause this form to show when you create a new drawing.

To Work with Forms 

Form Editor Reference 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

WCrihfield
Mentor
Mentor

@ober2558 Wait...you said these values were going to all be going into the title block of a drawing, but what we would need to know is how those textboxes within your title block are set-up, before we would know how to help with that.  If they are just set-up to point or link to an iProperty, then what I was having you do before would be OK towards that goal.  However, if those textboxes were all set up as actual 'Prompted Entries' directly, then that's another story, and would need a different strategy to fill them in.  Filling in the values for prompted entries in a drawing's title block by code can be pretty tricky.  And yes, if you are not using the built-in dialog for filling in those prompted entries, then entering them by code is the alternative way of doing it.  I would suggest that, if you want to automate this easier, without having to use code that much, then you should set-up those textboxes within your title block definition sketch, to point to some custom iProperties that you have prepared in the drawing template.  Then you can use a regular, simple iLogic Form (as mentioned in first response) to fill in those custom iProperty values, which will automatically fill in those places in your title block.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes