in the example below I uploaded, there are two commands, jig_pl, jig_insert.
the first command is about drawing an AcdbPolyline simulating Acad's pl command, the question is in the DoIt() or the Sample(), I am unable to get mouse event, eg, the mouse's right click means ending the command, and this is quite Convenient for the users, and in my code ,I have to use keyword "E"。
the second command jig_insert, I want to simulate CAD's command "move" ,"rotate","scale" ,and combine them together, the reason why I don't use the command directly in my code, is "Interact with the user".
the problem is if you select line,polyline, it works well. but if the entities you select contains AcdbBlockference (there is a dwg in the source code directory) , you can try the command . if you select only one AcdbBlockrefernce, no problem. if you select an AcdbBlockrefernce and other entities like polyine、circle, it worked strangely.
the code has been compile under VC8.0 , Windows XP, VS2005, AutoCAD2008.