cjjatpuresilica
Civil/Environmental
- Oct 20, 2010
- 65
Dear EngAddict,
I managed to get the model to loft OK in the end and it updates OK when I change the MultiValue selection under the parameters in each of the files. So thank you so much.
My next task is to apply an external rule which will be activated upon opening say the top level file and the subsequent subordinate files, that will:
a: automatically load each of the lower assembly files.
b. Set the MultiValue selection in the respective user-parameters in each of the respective files.
I have loaded Microsoft Visual Basic 2010 to create the external file but wondered if you could possibly help me with the code for the Inventor Rule and if possible the *.vb file.
This is the existing header code within my Inventor Rule and I want the external rule to determine which of the model types is to be used.
MultiValue.SetList("ModelType", "OuterNormal", "OuterIntense", "InnerIntense", "InnerNormal",)
I think the extra code should look something like this but I am only guessing:
localTrigger = iTrigger0
AddReference "ModelType.DLL"
localTrigger = iTrigger0
Using dlg As New ModelType.Dialog1
dlg.Parameter = Parameter
dlg.MultiValue = MultiValue
dlg.type_list = MultiValue.List("ModelType")
dlg.type = Parameter("ModelType")
dlg.ShowDialog()
End Using
End If
At the moment I get the following error message:
Error on Line 0 : could not find library 'ModelType.DLL'
Error on Line 0 : compiler initialization failed unexpectedly: 0x80070002
Your continued help would be greatly appreciated.
Finally I must thank you for your meaningful help. I may be a mere novice but nevertheless in the past week with your help I have made more progress than I have in the previous three/four months
So thank you once again.
cjj
I managed to get the model to loft OK in the end and it updates OK when I change the MultiValue selection under the parameters in each of the files. So thank you so much.
My next task is to apply an external rule which will be activated upon opening say the top level file and the subsequent subordinate files, that will:
a: automatically load each of the lower assembly files.
b. Set the MultiValue selection in the respective user-parameters in each of the respective files.
I have loaded Microsoft Visual Basic 2010 to create the external file but wondered if you could possibly help me with the code for the Inventor Rule and if possible the *.vb file.
This is the existing header code within my Inventor Rule and I want the external rule to determine which of the model types is to be used.
MultiValue.SetList("ModelType", "OuterNormal", "OuterIntense", "InnerIntense", "InnerNormal",)
I think the extra code should look something like this but I am only guessing:
localTrigger = iTrigger0
AddReference "ModelType.DLL"
localTrigger = iTrigger0
Using dlg As New ModelType.Dialog1
dlg.Parameter = Parameter
dlg.MultiValue = MultiValue
dlg.type_list = MultiValue.List("ModelType")
dlg.type = Parameter("ModelType")
dlg.ShowDialog()
End Using
End If
At the moment I get the following error message:
Error on Line 0 : could not find library 'ModelType.DLL'
Error on Line 0 : compiler initialization failed unexpectedly: 0x80070002
Your continued help would be greatly appreciated.
Finally I must thank you for your meaningful help. I may be a mere novice but nevertheless in the past week with your help I have made more progress than I have in the previous three/four months
So thank you once again.
cjj