Using MicroStation Connect 17 version 10.127.00.209
I am going through the 'Building Addins step by step' tutorial. At step 5 I am trying to attach a dialog as dockable using thje following code:
public static void Toolbar(string unparsed) { ToolbarForm myForm = new ToolbarForm(); myForm.AttachAsGuiDockable(MyAddin.Addin, "toolbar"); myForm.Show(); }
I am getting an error that MyAddin does not contain a definhition for MyAddin.Addin.
Need help resolving the MyAddin.Addin value.
Hi,
willmartinpe said:I am going through the 'Building Addins step by step' tutorial.
Please, share link to the tutorial. Otherwise the context is unknown and when you wrote "at step 5", it's useless.
willmartinpe said:I am getting an error that MyAddin does not contain a definhition for MyAddin.Addin.
I think the error is clear: You MyAddin class does not contain Addin property.
willmartinpe said:Need help resolving the MyAddin.Addin value.
Because you do not share how your MyAddin class looks, it is not possible to analyze where the problem is and to help you.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Thanks for your patience.
The tutorial is at:
stephttps://communities.bentley.com/products/microstation/w/microstation__wiki/31278/learning-microstation-addins-step-by-step
willmartinpe said:The tutorial is at:
Read carefully the chapter to the end, including discussion. How Addin public property should be declared is discussed there.