Tutorials for Map 3D Industry Model API?

Tutorials for Map 3D Industry Model API?

Anonymous
Not applicable
584 Views
2 Replies
Message 1 of 3

Tutorials for Map 3D Industry Model API?

Anonymous
Not applicable

I found the "Map 3D Industry Model API reference", but I found not tutorial.

Any hints for samples and tutorials for beginners?

 

Thanks!

0 Likes
585 Views
2 Replies
Replies (2)
Message 2 of 3

norman.yuan
Mentor
Mentor

When you have AutoCAD Map or Civil3D installed, there are huge number of .NET sample code projects (over 140!) for IM (Industry Models) also available in "C:\Program files\Autodesk\AutoCAD 20xx\Map\Development\Samples\".

 

I never used/developed with IM, but over 140 sample projects would be good enough for startup tutorial Smiley Wink

 

 

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3

Anonymous
Not applicable

@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

 

0 Likes