Running Connect 10.17.00.209
I am going through the steps tutorial for building a MicroStation Addin
I am at
I am getting an unknown object KeyinTree when I declare the AddinAttribute:
using System; using System.Runtime.InteropServices; using System.Windows.Forms; //using Bentley.Internal.MstnPlatformNET; using Bentley.MstnPlatformNET; namespace csAddins { [Bentley.MstnPlatformNET.AddInAttribute (KeyinTree = "csAddins.commands.xml", MdlTaskID = "CSADDINS")] internal sealed class MyAddin : Bentley.MstnPlatformNET.AddIn { private MyAddin(System.IntPtr mdlDesc) : base(mdlDesc) { } protected override int Run(string[] commandLine) { string sWinFrameworkPath = RuntimeEnvironment.GetRuntimeDirectory(); MessageBox.Show("Framework Path =" + sWinFrameworkPath); CreateElement.LineAndLineString(); CreateElement.ShapeAndComplexShape(); CreateElement.TextAndTextNode(); CreateElement.CellAndSharedCell(); CreateElement.LinearAndAngularDimension(); CreateElement.CurveAndBsplineCurve(); CreateElement.ConeAndBsplineSurface(); return 0; } } }
I copied the code verbatim from the tutorial. What am I doing worng?
Hi,
please be aware this is general Developer and Programming forum, whereas you question seems to be about MicroStation (although you did not share any information about used product). I recommend to move your question to MicroStation Programming forum.
To move existing discussion to another forum, use More > Move tool, available under your original post.
willmartinpe said:Running Connect 10.17.00.209
No such product exists. Do you mean MicroStation CONNECT Edition Update 17 (build 10.17.00.209)? Please see the best practices, what information and in what format is recommended to share.
willmartinpe said:I copied the code verbatim from the tutorial. What am I doing worng?
Because you do not share the link to the original tutorial, I can guess only. The code looks weird a bit, because MStnPlatformNET is CE API namespace, but in CE no KeyinTree attribute is required (and I think it even does not exist). I recommend to check C# examples, delivered with MicroStation SDK, how the project is configured.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point