Addin Issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
i bit of help please 🙂
OK. my app works perfectly as a windows form. When i build it as a class i get lots of errors. for example, in my windows form version my Select Case do not throw errors but as a dll they all highlight as a warning. Why is this.
Also, i have to declare my form as an object. i have done this like this-
Public Function mainform() As Object Throw New NotImplementedException End Function
i get an error at 'Throw New NotImplementedException
if i comment it out, the function errors. if i comment out the function, i get an error telling me the form is not declared as an object......
i also get errors on this line-
Dim a As String = mainform.cboViewScale.Text
and this line
oDrawDoc = InvApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, sTemplateFile)
These work perfectly ok as a windows form option. Visual Studio doesnt offer any help on the differences so im asking the experienced people here.
Can anyone please help?
Thanks
Nigel
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.