Hi there,
I couldn't find any help on this topic - so two questions.
transaction 1 modelChange 'Add baseCS, cs1' { node User.Objects.baseCS Bentley.GC.NodeTypes.CoordinateSystem { Technique = 'AtModelOrigin'; DGNModelName = 'Design Model'; SymbolSize = 1; } node User.Objects.cs1 Bentley.GC.NodeTypes.CoordinateSystem { Technique = 'ByUniversalTransform'; CoordinateSystem = baseCS; XTranslation = <free> 4.77462954680272; YTranslation = <free> -2.11263502763131; ZTranslation = <free> 3.88403542625826; XRotation = 10; YRotation = 5; } } transaction 2 modelChange 'Add NrGrid' { node User.Objects.NrGrid Bentley.GC.NodeTypes.Slider { Technique = 'Default'; Value = 5.0; Minimum = 2; Maximum = 20; Resolution = 1; SnapToTicks = true; } } transaction 3 modelChange 'Add pts1' { node User.Objects.pts1 Bentley.GC.NodeTypes.Point { Technique = 'ByFunction'; Function = function (CoordinateSystem cs01) { for (int i = 0; i < NrGrid.Value; ++i) { for (int j = 0; j < NrGrid.Value; ++j) { Point pts1 = new Point(this) ; pts1.ByCartesianCoordinates(cs1,i,j,0); } } }; cs01 = cs1; } }
Ingo