Hi Johnson, thank you for your reply.
Below is a screenshot of the part I am working with, it's a very simple part. The form has the 3 variables and a set of illogic rules changes the flange sizes, corner holes position and central holes pitches to suit sizes (50mm increments).

I've decided to split this down into workable sections of code, as below:-
1. Code to attach the correct drawing to the part.
2. Code to set up the views (a view on flange holes & a view on side)
3. Code to attach dimensions to these views.
I have managed to add the first rule to attach the drawing to the part, which seems to work with one error which I'm not sure how to fix?:-
Error in rule: Rule22, in document: Silencer.ipt
Public member 'Add' on type 'Application' not found.
The code I've done is here:-
Imports Inventor.ViewOrientationTypeEnumImportsInventor.DrawingViewStyleEnum
Dim oDrawingDoc As DrawingDocument
Dim oPartDoc As Document
Dim oSheet As Sheet
Dim oTG As TransientGeometry
Dim oView1 As DrawingView
Dim oView2 As DrawingView
Dim oView3 As DrawingView
Dim oView4 As DrawingView
ViewScale=3/16
'Ask to create drawing?
dwgQuery=MsgBox("Would you like to Create a drawing for this MODEL?", vbYesNo,"Drawing Selection")
If dwgQuery=vbYes
ThenoPartDoc=ThisDoc.Document
'Define IDW Template File Location
oDrawingDoc=ThisApplication.Add.kDrawingDocument("C:\VaultWorkingFolder\Designs\Templates\SilencerAssembly.idw", True)
oSheet=oDrawingDoc.Sheets.Item(1)
'Define 2d view bottom left corner points for four views
oPoint1=ThisApplication.TransientGeometry.CreatePoint2d(1, 1)
oPoint2=ThisApplication.TransientGeometry.CreatePoint2d(1, 6)
oPoint3=ThisApplication.TransientGeometry.CreatePoint2d(5, 1)
oBaseView=oSheet.DrawingViews.AddBaseView(oPartDoc,oPoint1, 3/16,kFrontViewOrientation, kHiddenLineDrawingViewStyle)
', KTANGENTEDGESON)
oView2=oSheet.DrawingView.AddProjectedView(oBaseView,oPoint2, kHiddenLineDrawingViewStyle, 3/16)
oView3=oSheet.DrawingView.AddProjectedView(oBaseView,oPoint3, kHiddenLineDrawingViewStyle, 3/16)
End If
If I can fix this error that will be task 1 done. I'm really not sure about the others yet though!!
Thank you for your help