@norman.yuan
thanks a lot - yes, there are many samples in
c:\Program Files\Autodesk\AutoCAD 2018\Map\Development\
and (nearly the same) in
c:\Program Files\Autodesk\Autodesk Infrastructure Administrator 2018\Development\
But at a first glance the only stuff relating scripting is
c:\Program Files\Autodesk\AutoCAD 2018\Map\Development\Samples\VB.Net\139_HostReportInOtherApplication\MyScriptingClass.vb
' (C) Copyright 2010 by Autodesk, Inc.
'
' Permission to use, copy, modify, and distribute this software in
' object code form for any purpose and without fee is hereby granted,
' provided that the above copyright notice appears in all copies and
' that both that copyright notice and the limited warranty and
' restricted rights notice below appear in all supporting
' documentation.
'
' AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
' AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
' MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
' DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
' UNINTERRUPTED OR ERROR FREE.
'
' Use, duplication, or disclosure by the U.S. Government is subject to
' restrictions set forth in FAR 52.227-19 (Commercial Computer
' Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
' (Rights in Technical Data and Computer Software), as applicable.
Imports System.Text
Namespace VBSample139
''' <summary>
''' The function of this Class can be used from the Userdefined Scripting functions
''' in the Reportdesigner.
''' Type "Me." and you will see Whatever/HeyHo and all the functions you define here.
''' </summary>
Public Class MyScriptingClass
Inherits Autodesk.Map.IM.Forms.Report.Scripting.Scripting
Private ReadOnly Property MyApi() As MyReportApi
Get
Dim myHost As MyReportHost = CType(Me.Host, MyReportHost)
Return myHost.MyApi
End Get
End Property
Public Function WhatEver(ByVal value As String) As String
Return Me.MyApi.MyApiWhatEver(value)
End Function
Public Function HeyHo() As String
Return Me.MyApi.MyApiHeyHo()
End Function
End Class
End Namespace