Developer Guide
Page 2
... Assistance, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface, Autodesk Animator Clips, Autodesk Animator Theatre, Autodesk Device Interface, Autodesk Inventor, Autodesk PhotoEDIT, Autodesk Software Developer's Kit, Autodesk Streamline, Autodesk View DwgX, AutoFlix, AutoSnap, AutoTrack, Built with Autodesk Technology (logo), RadioRay, Rastation, Softdesk, Softdesk (logo), Solution 3000, Texture Universe, The AEC Authority, The Auto Architect, TinkerTech, VISION*, WHIP!, WHIP! (logo), Woodbourne, WorkCenter, and World-Creating Toolkit. MAKES NO WARRANTY, EITHER EXPRESSED OR...
... Assistance, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface, Autodesk Animator Clips, Autodesk Animator Theatre, Autodesk Device Interface, Autodesk Inventor, Autodesk PhotoEDIT, Autodesk Software Developer's Kit, Autodesk Streamline, Autodesk View DwgX, AutoFlix, AutoSnap, AutoTrack, Built with Autodesk Technology (logo), RadioRay, Rastation, Softdesk, Softdesk (logo), Solution 3000, Texture Universe, The AEC Authority, The Auto Architect, TinkerTech, VISION*, WHIP!, WHIP! (logo), Woodbourne, WorkCenter, and World-Creating Toolkit. MAKES NO WARRANTY, EITHER EXPRESSED OR...
Developer Guide
Page 4
... Access from HTML 35 Map Access Using Java 38 Required Software for the Java Edition 39 Java Edition Differences 39 Communicating with the Plug-In from a Java Applet 40 Accessing Secure Data 43 Handling Busy State and Map Refresh 43 About the Busy State 43 Controlling Map Refresh Operations 45 Handling Errors 47 Getting Error Codes 47 Checking for Incorrect Argument Types 48 Debugging an Application 48 Chapter 4 Working with Map Layers...
... Access from HTML 35 Map Access Using Java 38 Required Software for the Java Edition 39 Java Edition Differences 39 Communicating with the Plug-In from a Java Applet 40 Accessing Secure Data 43 Handling Busy State and Map Refresh 43 About the Busy State 43 Controlling Map Refresh Operations 45 Handling Errors 47 Getting Error Codes 47 Checking for Incorrect Argument Types 48 Debugging an Application 48 Chapter 4 Working with Map Layers...
Developer Guide
Page 5
... Summary of ASP Objects, Components, and Events . . . . 110 Listing File Contents with ASP 111 Querying and Displaying Data via the Map with ASP . . . . 115 Modifying a Database via the Map with ASP 125 Chapter 7 Applications 135 Overview 136 Custom Redlining Application 136 Redlining Example Code 137 Municipal Application 140 Municipal Application Example Code 141 Facility Management Application 156 Facilities Management Application Example Code . . . . . 157 DWG Filtering Application 164 Understanding Layers in Autodesk MapGuide 165 Changing Map Layer Data Source Properties 165...
... Summary of ASP Objects, Components, and Events . . . . 110 Listing File Contents with ASP 111 Querying and Displaying Data via the Map with ASP . . . . 115 Modifying a Database via the Map with ASP 125 Chapter 7 Applications 135 Overview 136 Custom Redlining Application 136 Redlining Example Code 137 Municipal Application 140 Municipal Application Example Code 141 Facility Management Application 156 Facilities Management Application Example Code . . . . . 157 DWG Filtering Application 164 Understanding Layers in Autodesk MapGuide 165 Changing Map Layer Data Source Properties 165...
Developer Guide
Page 9
... to use to create Autodesk MapGuide web applications. Before You Begin Before you are and what application development is. Read this book and come up with Macintosh® Runtime for you understand about your applications. I Chapter 2, "Understanding Autodesk MapGuide." Map Mode Retrieval Support One new MGMap method (getMode) and one new property (Mode) were added to allow retrieval of a map's mode, such as how to deliver help about the Autodesk MapGuide components...
... to use to create Autodesk MapGuide web applications. Before You Begin Before you are and what application development is. Read this book and come up with Macintosh® Runtime for you understand about your applications. I Chapter 2, "Understanding Autodesk MapGuide." Map Mode Retrieval Support One new MGMap method (getMode) and one new property (Mode) were added to allow retrieval of a map's mode, such as how to deliver help about the Autodesk MapGuide components...
Developer Guide
Page 10
..., "What do my users need?" Do they need to the SDF Component Toolkit Help. I Use Java, JavaScript, JScript, Visual Basic, or VBScript with all development, the most important aspect of the following programming languages or toolkits to Query and Update Data Sources." For more information about using it. For more information about this toolkit, see Chapter 6, "Using Reports to develop Autodesk MapGuide web applications. MapGuide applications can include...
..., "What do my users need?" Do they need to the SDF Component Toolkit Help. I Use Java, JavaScript, JScript, Visual Basic, or VBScript with all development, the most important aspect of the following programming languages or toolkits to Query and Update Data Sources." For more information about using it. For more information about this toolkit, see Chapter 6, "Using Reports to develop Autodesk MapGuide web applications. MapGuide applications can include...
Developer Guide
Page 11
... example, you can use to programmatically access and manipulate its functionality. Autodesk MapGuide Viewer comes in the following illustration. You can then set of Help pages. In the form, you to customize the way in another. This application consists of a map, a form listing map features, and a number of custom image buttons on a single page, as buttons and list boxes that use of a Web browser. About the Autodesk MapGuide...
... example, you can use to programmatically access and manipulate its functionality. Autodesk MapGuide Viewer comes in the following illustration. You can then set of Help pages. In the form, you to customize the way in another. This application consists of a map, a form listing map features, and a number of custom image buttons on a single page, as buttons and list boxes that use of a Web browser. About the Autodesk MapGuide...
Developer Guide
Page 14
For example, you might create a button that refreshes a map or add text boxes that retrieves the redlining data, processes it . For more information about working with SDF files, see the new date of a fire hydrant by embedding a map in an HTML page, in SDF files, you can use these reports using Macromedia ColdFusion, Microsoft Active Server Pages (ASP), or another server-side scripting language. You can...
For example, you might create a button that refreshes a map or add text boxes that retrieves the redlining data, processes it . For more information about working with SDF files, see the new date of a fire hydrant by embedding a map in an HTML page, in SDF files, you can use these reports using Macromedia ColdFusion, Microsoft Active Server Pages (ASP), or another server-side scripting language. You can...
Developer Guide
Page 27
... version, the latest version will be installed automatically. Installing Viewers on Client Machines If users accessing your Web site don't have an Autodesk MapGuide Viewer installed on Client Machines | 27 In the following example, the CODEBASE parameter references the mgaxctrl.cab file located on the Autodesk MapGuide CD: Note that in your applications, you are using the Help ➤ Help About menu command in the \ActiveXCab folder on the Autodesk MapGuide FTP site. You can copy this file...
... version, the latest version will be installed automatically. Installing Viewers on Client Machines If users accessing your Web site don't have an Autodesk MapGuide Viewer installed on Client Machines | 27 In the following example, the CODEBASE parameter references the mgaxctrl.cab file located on the Autodesk MapGuide CD: Note that in your applications, you are using the Help ➤ Help About menu command in the \ActiveXCab folder on the Autodesk MapGuide FTP site. You can copy this file...
Developer Guide
Page 39
... Kit version 1.1.x. To download the Autodesk MapGuide observer, files, choose Help ➤ Contents ➤ Plug-In/Java Edition Downloads in the Autodesk MapGuide Viewer API Help. Map Access for the Java Edition | 39 Required Software for the Java Edition To work with Autodesk MapGuide Viewer, Java Edition, you may need to download the Java observer applet file MapGuideObserver6J.class. If you are developing a Java application with Autodesk MapGuide Viewer, Java Edition, you will need to download certain Java files provided with Autodesk MapGuide Viewer, Java Edition, see...
... Kit version 1.1.x. To download the Autodesk MapGuide observer, files, choose Help ➤ Contents ➤ Plug-In/Java Edition Downloads in the Autodesk MapGuide Viewer API Help. Map Access for the Java Edition | 39 Required Software for the Java Edition To work with Autodesk MapGuide Viewer, Java Edition, you may need to download the Java observer applet file MapGuideObserver6J.class. If you are developing a Java application with Autodesk MapGuide Viewer, Java Edition, you will need to download certain Java files provided with Autodesk MapGuide Viewer, Java Edition, see...
Developer Guide
Page 40
...\Java\autodesk\mapguide\6.0 I Netscape C:\Programs\Netscape\users\username\.autodesk\mapguide\6.0 I Solaris /home/username/.autodesk/mapguide/6.0 Browser Differences with the Autodesk MapGuide Viewer Plug-In API. Communicating with the Plug-In from a Java Applet Netscape's LiveConnect technology makes it possible to write a Java applet that communicates with Java Edition I If a map was authored so that map feature in the Java network library). I If a user with Internet Explorer requests data beyond a firewall, Autodesk MapGuide Viewer, Java Edition fails unless...
...\Java\autodesk\mapguide\6.0 I Netscape C:\Programs\Netscape\users\username\.autodesk\mapguide\6.0 I Solaris /home/username/.autodesk/mapguide/6.0 Browser Differences with the Autodesk MapGuide Viewer Plug-In API. Communicating with the Plug-In from a Java Applet Netscape's LiveConnect technology makes it possible to write a Java applet that communicates with Java Edition I If a map was authored so that map feature in the Java network library). I If a user with Internet Explorer requests data beyond a firewall, Autodesk MapGuide Viewer, Java Edition fails unless...
Developer Guide
Page 70
... handling code; For example, if the user clicks a point on page 78. This type of this). Code examples that point (see a full working event handling example, choose Help ➤ Contents ➤ Examples Advanced ➤ Event Handling example in "Setting Up Event Handlers" on page 72 and "Writing Event Handlers" on the map, you need to an event, is called an event handler. To see "SDF Component Toolkit Applications...
... handling code; For example, if the user clicks a point on page 78. This type of this). Code examples that point (see a full working event handling example, choose Help ➤ Contents ➤ Examples Advanced ➤ Event Handling example in "Setting Up Event Handlers" on page 72 and "Writing Event Handlers" on the map, you need to an event, is called an event handler. To see "SDF Component Toolkit Applications...
Developer Guide
Page 79
... elements except the map 1 Create a button on page 66. Page Setup Event Handler Example If you want your application to control settings from the Autodesk MapGuide Viewer Page Setup dialog box, you 've set up the event handlers as described in "Setting Up Event Handlers" on page 72, and enabled print events as described in "Enabling the Print Events" on the HTML page: 2 Create a JavaScript...
... elements except the map 1 Create a button on page 66. Page Setup Event Handler Example If you want your application to control settings from the Autodesk MapGuide Viewer Page Setup dialog box, you 've set up the event handlers as described in "Setting Up Event Handlers" on page 72, and enabled print events as described in "Enabling the Print Events" on the HTML page: 2 Create a JavaScript...
Developer Guide
Page 88
... the server-side scripting code used to the Web server. Both products work essentially the same way. Because the processing is included as part of your map applications, can view the source of Windows 2000 and Windows NT Server 4.0 with the Web server to other application servers as a Windows® NT service. ColdFusion and ASP are general, applying to Common Gateway Interface (CGI) and to provide additional Web functionality. Although the examples are specific to...
... the server-side scripting code used to the Web server. Both products work essentially the same way. Because the processing is included as part of your map applications, can view the source of Windows 2000 and Windows NT Server 4.0 with the Web server to other application servers as a Windows® NT service. ColdFusion and ASP are general, applying to Common Gateway Interface (CGI) and to provide additional Web functionality. Although the examples are specific to...
Developer Guide
Page 89
... database output to select from that data source. The tag controls how the database output will be passed to create powerful and complex Web applications. ColdFusion was designed to provide database connectivity to create report scripts with ColdFusion. Then you want to use ColdFusion to the ColdFusion service for processing. You place this template accesses the database directly, instead of using the Autodesk MapGuide reporting feature. Note that database at the location...
... database output to select from that data source. The tag controls how the database output will be passed to create powerful and complex Web applications. ColdFusion was designed to provide database connectivity to create report scripts with ColdFusion. Then you want to use ColdFusion to the ColdFusion service for processing. You place this template accesses the database directly, instead of using the Autodesk MapGuide reporting feature. Note that database at the location...
Developer Guide
Page 102
....cfm file. 102 | Chapter 6 Using Reports to a database on the server and are then stored in a database on the server. The added points are visible to track crimes and consists of the following shows the application results if no map features have been selected. The following components: I An Autodesk MapGuide report (and later, a custom menu item) that takes additional user input, and add the point data to Query and Update Data Sources Displaying the map, a report...
....cfm file. 102 | Chapter 6 Using Reports to a database on the server and are then stored in a database on the server. The added points are visible to track crimes and consists of the following shows the application results if no map features have been selected. The following components: I An Autodesk MapGuide report (and later, a custom menu item) that takes additional user input, and add the point data to Query and Update Data Sources Displaying the map, a report...
Developer Guide
Page 109
... access the Incident Log application. Instead of tags, ASP files include scripts written in VBScript, a lightweight Visual Basic-like scripting language, or in your code. Mostly, you can use them to use the Autodesk MapGuide Viewer API to get a good idea of the Microsoft Developer Network (MSDN) Library. While ColdFusion is designed specifically for how those you add code for Web-database connectivity, ASP is provided by objects and components...
... access the Incident Log application. Instead of tags, ASP files include scripts written in VBScript, a lightweight Visual Basic-like scripting language, or in your code. Mostly, you can use them to use the Autodesk MapGuide Viewer API to get a good idea of the Microsoft Developer Network (MSDN) Library. While ColdFusion is designed specifically for how those you add code for Web-database connectivity, ASP is provided by objects and components...
Developer Guide
Page 110
... Manages content returned to your database map resources. Server Provides a number of useful server methods, including CreateObject(), which you'll use to the server. Components Used to Create a Report Script Component Description Database Access Reads and writes to Query and Update Data Sources Content Linking Links separate Web pages together so that are available to features the browser supports. File Access Allows access to all users of an application. Objects Used to Create a Report Script Object Description Application Lets you create variables available to text...
... Manages content returned to your database map resources. Server Provides a number of useful server methods, including CreateObject(), which you'll use to the server. Components Used to Create a Report Script Component Description Database Access Reads and writes to Query and Update Data Sources Content Linking Links separate Web pages together so that are available to features the browser supports. File Access Allows access to all users of an application. Objects Used to Create a Report Script Object Description Application Lets you create variables available to text...
Developer Guide
Page 136
... creating custom reports and server-side scripts that enable users to create a complex object. You can access it with the rest of the map) to an MWF. Overview This chapter provides examples of how you might use the Autodesk MapGuide Viewer API to create a custom redlining application that allows users to a special layer type called a client redline layer. When you can make up a map using the original authoring application or modifying the original document. You can add...
... creating custom reports and server-side scripts that enable users to create a complex object. You can access it with the rest of the map) to an MWF. Overview This chapter provides examples of how you might use the Autodesk MapGuide Viewer API to create a custom redlining application that allows users to a special layer type called a client redline layer. When you can make up a map using the original authoring application or modifying the original document. You can add...
Developer Guide
Page 157
... the page. To view the source code for the controls. Facilities Management Application Example Code Following is loaded, you a better idea of the Autodesk MapGuide Web site at www.autodesk.com/mapguidedemo, click Interactive Demos, and then click the Facility Management application. Additional comments have been added to the code to give you can use your browser's View Source command to the Demos and Customers section of how the scripting works.
... the page. To view the source code for the controls. Facilities Management Application Example Code Following is loaded, you a better idea of the Autodesk MapGuide Web site at www.autodesk.com/mapguidedemo, click Interactive Demos, and then click the Facility Management application. Additional comments have been added to the code to give you can use your browser's View Source command to the Demos and Customers section of how the scripting works.
Developer Guide
Page 203
... displaying data 115 listing database contents with 109 listing file contents 111 querying data 14, 115 SDF Component Toolkit example 171 updating data 14 ActiveX Control 11 detecting with ColdFusion 89, 92 updating dynamically 86, 102, 125 Autodesk DWG. See Active Server Pages attribute data displaying for selected features (reports) 85, 86 listing with CODEBASE 27 displaying a map in 20 embedding a map 22 installing on client machines 27 linking to a map 20 adding custom page elements 68 map layers...
... displaying data 115 listing database contents with 109 listing file contents 111 querying data 14, 115 SDF Component Toolkit example 171 updating data 14 ActiveX Control 11 detecting with ColdFusion 89, 92 updating dynamically 86, 102, 125 Autodesk DWG. See Active Server Pages attribute data displaying for selected features (reports) 85, 86 listing with CODEBASE 27 displaying a map in 20 embedding a map 22 installing on client machines 27 linking to a map 20 adding custom page elements 68 map layers...