This is Daniel Du's Typepad Profile.
Join Typepad and start following Daniel Du's activity
Daniel Du
Beijing
Daniel Du has been with Autodesk since 2008, focusing on providing programming support, consulting, training and evangelism to external developers. He is based in Autodesk Beijing, China office. He started from his career from an institute and gained more than 10 years’ experiences on software design and development domain. His expertise spreads across application development for Autodesk Infrastructure Map Server (former MapGuide), AutoCAD Map 3D, AutoCAD Civil 3D, Topobase and other Infrastructure Modeling Technologies from Autodesk. Daniel has a bachelor degree in Geography from Lanzhou University. At his spare time, he likes go out for hiking in the hills near Beijing.
Recent Activity
This version is targeting Autodesk Vault 2014, so .Net Framework 4.0 is needed, it is not targeting .net 4.51.
Autodesk Vault Plug-in Wizard Helps Creating Vault Plug-in More Easily
By Daniel Du As described in Vault SDK help file, it involves several steps to create a vault plug-in, including adding references, adding vcet.config file, setting additional assembly property and implementing some interfaces. You also need to copy the output files into vault extension folder...
Typepad HTML Email
Hi Rob,
Thank you for raising this up. I removed the hyperlinks, please refer to the document in Vault SDK for more information about these services.
Regards,
Daniel
Different capbilities of Vault API between different vault versions
By Daniel Du As you know, We have different flavors of vault 2014( Basic, Workgroup, Professional), the difference of different vault version can be find here in product page. But I am always asked whether one specific API(or simple requirement) can be used on specific vault version, For example...
Typepad HTML Email
Since VS2013 rolls out already, I expect many developers move to newer IDE, so I would like to skip VS2010. Anyway, if want to do it yourself,
please feel free to do so based on the source code on github.com.
Cheers,
Daniel
Autodesk Vault Plug-in Wizard Helps Creating Vault Plug-in More Easily
By Daniel Du As described in Vault SDK help file, it involves several steps to create a vault plug-in, including adding references, adding vcet.config file, setting additional assembly property and implementing some interfaces. You also need to copy the output files into vault extension folder...
Integration with Google Map/Bing Map/Yahoo Map is part of built-in functionalites of AIMS 2013, you can set it up in Infrastructure Studio, and you need to use flexible web layout.
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-3
By Daniel Du In this post, we discuss site service and resource service. As we talked in part 2, there are 7 services in MapGuide Web Extension API. Before a page can use a service, it must open a site connection and create an instance of the necessary service type. All other 6 services are crea...
Hi Tom,
For AutoCAD Map 3D, there is no concept of "session layer", so you cannot use code snippet like below:
string sessionLayerName = templateLayerId.GetName();
string sessionLayer = @"Library://" + sessionLayerName + ".LayerDefinition";
MgResourceIdentifier sessionLayerResId = new MgResourceIdentifier(sessionLayer);
resSvc.SetResource(sessionLayerResId,byteSource.GetReader(),null);
You have to change the layer definition of library resources.
PS. blog is not a good place for technical support, if you have question, you are recommended to go to forums.autodesk.com or ADN if you are a member.
Set filter for layer at runtime in Autodesk Infrastructure Map Server or MapGuide Enterprise
By Daniel Du When developing application on Autodesk Infrastructure Map Server, you may want to apply a filter to a layer to hide some features. In this post, I will demonstrate how to do this programmatically. How to do in Infrastructure Studio UI Firstly, let’s take a look how we can do the ...
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-8
Posted Apr 11, 2013 at Infrastructure Modeling DevBlog
Comment
0
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-6
Posted Apr 9, 2013 at Infrastructure Modeling DevBlog
Comment
0
Sorry I made a mistake, this feature has been there on AutoCAD 2013. Please see http://upandready.typepad.com/up_and_ready/2013/03/installing-language-packs-for-autocad.html. And there is no SP2 yet and I do not know the plan( when or whether it will be released) yet.
Switch language of AutoCAD without installing multi-copy
By Daniel Du Are you bilingual, trilingual or even octalingual? Are you working languages other than English in AutoCAD? In previous release, you probably need to install multi copies of AutoCAD, like myself, I have to install AutoCAD English and Chinese on my laptop. A good news of AutoCAD 2014...
Sorry but I do not understand your requirement. But it is possible to embed a base layer like Google Maps/Bing Map, etc to AIMS with flexible web layout. Not sure whether it is what your want to do...
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-3
By Daniel Du In this post, we discuss site service and resource service. As we talked in part 2, there are 7 services in MapGuide Web Extension API. Before a page can use a service, it must open a site connection and create an instance of the necessary service type. All other 6 services are crea...
the URL is truncated due to the layout issue, it is:
https://import.autodeskbutterfly.com/DevTools/inspector/devtools.html
Enabling AutoCAD 2014 JavaScript Debugging
by Fenton Webb New in AutoCAD 2014 is the JavaScript API. Without going into too much detail here (this will be covered in much more detail elsewhere) this basically allows developers host their Apps via a URL rather than a download/install model – very cool. If you have tried using the JavaScri...
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-4
By Daniel Du In this part, we will discuss displaying and plotting maps. After this class, you will have a better understanding layers, layer groups and map, and learn how to plot maps to plain images or DWF files. A layer in MapGuide is an overlay on a drawing composed... Continue reading
Posted Apr 4, 2013 at Infrastructure Modeling DevBlog
Comment
0
Autodesk Infrastructure Map Server(AIMS) API Training content : Part-3
By Daniel Du In this post, we discuss site service and resource service. As we talked in part 2, there are 7 services in MapGuide Web Extension API. Before a page can use a service, it must open a site connection and create an instance of the necessary service type.... Continue reading
Posted Apr 3, 2013 at Infrastructure Modeling DevBlog
Comment
4
Thanks Norman for the comment, The code was in VB. To be clear, I changed it to VBA code and appended some C# code snippet for reference.
Purging anonymous blocks
By Daniel Du Issue How do I purge all unnamed (and unreferenced) blocks from a drawing programmatically? Solution To purge all unreferenced objects from a drawing, you can use the PurgeAll command. Here is the VBA code: Sub del_all() ThisDrawing.Application.ActiveDocument.PurgeAll() En...
You can select any AMI which satisfies the system requirement of MapGuide and install it when logging into the instance with remote control tool.
Sorry but Autodesk cannot provide support about this.
It is possible to deploy MapGuide Enterprise or AIMS on Amazon Cloud EC2?
By Daniel Du Unfortunately at this stage, MapGuide Enterprise or AIMS is not supported to deploy on cloud environment. From a licensing and warranty stand-point, we are not allowing cloud-based deployment of MapGuide Enterprise 2011 (or previous releases for that matter) – one of the primary rea...
Hi Badar,
The sample code of solution 5/6, including all others, can be downloaded from the last link in the post.MapGuide
Samples 2012(zip
- 22.5 MB)
Thanks,
Daniel
DevTV and Code Sample: create temporary layer, feature editing in AIMS2012
By Daniel Du Are you looking for code samples to create temporary layer in Autodesk Infrastructure Map Server? Are you looking for samples demonstrating insert/update/delete features in AIMS? Here are two DevTVs and code samples. It demonstrates how to setup and run the samples in DevTV. Demo...
Hi Arrianne,
I did not do anything with config.json, just using the default one which is installed by installer. I don't think it is necessary to modify this file except you have particular needs.
Getting Fusion object in flexible web layout
By Daniel Du When developing with flexible web layout, we always need to get the global object Fusion. Sometimes you may get error message: ' Fusion is undefined' if you do not get it correctly. Actually, how to get the Fusion object depends on how you embed the fusion viewer into your webpage a...
Thanks David for pointing out this, it is fixed now.
Make full use of tooltip in Autodesk Infrastructure Map Server(AIMS) or MapGuide Open Source
By Daniel Du My colleague Partha wrote up an post about creating multiline mouse over Tool tip for your map in Autodesk Infrastructure Map Server / MapGuide Enterprise, in this post, I would dive deeper to introduce more interesting ways to make full use of tool-tip in AIMS, it also applies to M...
Yes, I agree with you Zac, I have logged a wishlist about this, please free feel to issue a ticket from Open Source community as well :)
Changing size and feature of new window in Fusion viewer “invoke URL”
By Daniel Du If you use “invoke URL” command of fusion viewer and select “New Window” as target to open a new browser window, you may find this window is fixed, not resizable, no memubar, no status bar, and no location bar. If you want to change the features of this window, please keep readin...
To Implement ZoomToSelection in Fusion Viewer of AIMS or MapGuide Enterprise
By Daniel Du I blogged about this topic on my personal blog in English, so I just leave a link here, if you are interested in this topic, please refer to this post. It was written based on MapGuide Enterprise 2011, but it applies to AIMS 2012/2013 as well with... Continue reading
Posted Aug 16, 2012 at Infrastructure Modeling DevBlog
Comment
0
Setting the center of map programmatically
By Daniel Du Q: I want to zoom a map to screen center without changing the scale, how can I do it? A: In Map 3D, if you have connected to FDO data sources and added them to map, you can call AcMapMap.ZoomToExtent() to set the new extent of map.... Continue reading
Posted Aug 16, 2012 at Infrastructure Modeling DevBlog
Comment
1
Retrieve the maps or web layouts from AIMS/MGE repository
By Daniel Du I am asked how to get the list of maps from MapGuide repository. In this post, I will show you how to do it with code, actually it is possible to get a list of resource with specified type, it can be feature source, layer, map or... Continue reading
Posted Aug 12, 2012 at Infrastructure Modeling DevBlog
Comment
1
TypePad HTML Email
Hi Alex,
Sorry but I am clear about your meaning, are you trying to add a chart in AIMS? Would you please refer to this post to check whether it is helpful?
http://adndevblog.typepad.com/infrastructure/2012/04/make-full-use-of-tooltip-in-autodesk-infrastructure-map-serveraims-or-mapguide-open-source.html
Thanks,
Daniel
Disable Coordinate Label when Plotting in Ajax Viewer
By Daniel Du When plotting in Ajax viewer with QuickPlot, the coordinate labels of left-upper corner and bottom-right corner always show up as screen-shot below: I got a request to disable this coordinate label. After some investigation, here is the solution for your reference. The simplest wa...
I did a test, it works fine for Raster layer as well. A reminder is, please to make sure to refresh the map using viewer API.
How to toggle the layer's visibility programmatically in Ajax viewer of AIMS?
By Daniel Du As a first step, we need to find the layer and toggle the layer visibility by changing the MgLayer::Visibility property. And next, we need to save the map to apply the change, followed by a call to viewer API to refresh the map. If you are using fusion viewer or flexible web layout,...
Hi Mohammad,
To make the blog more readable, we only answer questions related to the post itself. If you have any other questions, would you please ask through ADN site(if you are an ADN member) or ask in autodesk discussion group?
Thank you for your understanding.
Setting coordinate system for map using .net API
By Daniel Du You probably have already known that we can get the current coordinate system of map with following code snippet: [CommandMethod("GetMapCoordinateSystem")] public void GetMapCoordinateSystem() { AcMapMap currentMap = AcMapMap.GetCurrentMap(); string srs = c...
Thank you for the comment, the link is fixed now.
Creating custom control for Mobile Viewer of AIMS
By Daniel Du Do you browse maps on mobile devices such as iPad, iPhone or iPod Touch? Do you use the Mobile Viewer on your mobile devices to browse MapGuide maps? The Mobile Viewer was introduced in Autodesk Infrastructure Map Server 2012, enabling you to browse your map on the go. I just del...
More...
Subscribe to Daniel Du’s Recent Activity