[code]Public Shared fForm As Form
[/code]
Then, when I need the form to be shown, I use this in the ribbon button command (loaded into Inventor)[code]AddinGlobal.fForm = New fMain
AddinGlobal.fForm.Show()[/code]
This creates a new instance of the form. I have done it this way so that fForm can be accessed by other functions.[code]Public Shared pgStructure As New pAssyStructure
Private pgAssembly As New pAssembly
Private pgBorders As New pAssembly
Private pgFlatPatt As New pFlatPattern
Private pgPart As New pPart
Private pgPresentation As New pPresentation
Private pgSetting As New pSettings
Private pgFrontSheet As New pFront[/code]
Problem:
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w