Hi,
I have a drawing that can be used to manufacturing purpuses or to normal company ipt, iam, etc., and I want to when opening a new drawing configure it if the designer if it chooses yes in the msgbox change the title bock and the standards in the styles.
started the code like this:
Dim i As String i = MessageBox.Show("Vai efectuar o desenho de uma ferramenta ou de um elemento seu?", "Parts List", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) If i = "6" Then ActiveSheet.TitleBlock = "Alualpha_Ferr" End If
but it gives this error
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
sorry but I'm a beginer 🙂
Thanks in advanced
FG
and you have done this in the "edit definition" sketch environment??
Great work. That makes my life easy. Thanks for sharing the IDW file.
@SeanFarr wrote:Hi,
Instead of a message box pop up, I have a form that pops up once the template drawing is opened.
Use attached image as reference
black box shows my title blocks
red box shows my custom styles which controls my drawing units
arrow point to rules used.
This form allows me to choose
- units - this is my drawing standard selection (see rule with green arrow)
- choose sheet size (see rule with red arrow)
- choose title block, I have 4 different ones, based on size and sub-company (see rule with orange arrow)
and the form is started using the rule with purple arrow
disregard all company info and logo's
Good Luck!!