When starting a new
drawing i want to select the customer or project i will work on. It works like
this ; I use new and get a empty drawing. I use the event trigger “ New
Document”.
I usually don’t use
event triggers for anything but “New” because I don’t want any recurring iLogic
stored in the files. It’s a bad idea because the code is inside the file, and even
if you use central location you don’t know wich files got the triggers and wich
files don’t, plus it is a big job if you want to change the code. You need to
do it file by file.
I use Naviate Manufacturing to run iLogic on save. It runs on all files saved and don’t need
any Inventor or file setup regarding the iLogic.
So, when creating a
new drawing I load this Global form by iLogic and set the title block and frame
:
So, this is how its done :
- Store this code to load title and frame in a central location. Enter your names of frames and title blocks, and create as many codes as you have Title blocks and frames.
ActiveSheet.TitleBlock = "AL Title"
ActiveSheet.Border = "Autoline Border"
My three selections / codes are named :
- CADQ- AUTOLINE
- HC
2. Create a GLOBAL Form to load the codes from point 1
3. Create a code to load the form on New and save it. I named it “TRIGGERFORM01”
4. Set the Event trigger to run the code from pt 3 when creating a new drawing.
With the Title blocks and Frames created in the template and the trigger set as in pt 4, creating a new drawing will pop up a form where you can select the title and frame.
You can also add other information into Iproperties at the same time you select Title/ frame.