This is Balaji's Typepad Profile.
Join Typepad and start following Balaji's activity
Join Now!
Already a member? Sign In
Balaji
Interests: Cycling, Carpentry and DIY projects
Recent Activity
Thanks for sharing the Code Linker and that detailed discussion. There is a treasure of information in that post. Regards, Balaji
By Balaji Ramamoorthy Recently, a developer came up with this query : Is there a simple way to have a single copy of my code configured to compile to different folders with different references based on the desired version of AutoCAD to be run ? This is not strictly an... Continue reading
Posted Dec 17, 2015 at AutoCAD DevBlog
Sorry for the delay. I hadn't noticed your comment to this post. I have posted a reply to your discussion forum post on the same topic http://forums.autodesk.com/t5/net/use-objectdbx-realdwg-to-read-propertysetdef-from-solid3d/m-p/5955500#M46959 Thanks Balaji
By Balaji Ramamoorthy Recently, one of my colleague had this query : I am importing the DGN (not to the current drawing). This creates a new drawing and I want to switch to the new drawing and perform other commands. What is the best way to switch the current drawing... Continue reading
Posted Dec 15, 2015 at AutoCAD DevBlog
Hi Ben, Glad that you are liking AccoreConsole. Here are a few more links to help with this topic : http://through-the-interface.typepad.com/through_the_interface/2012/02/the-autocad-2013-core-console.html http://aucache.autodesk.com/au2012/sessionsFiles/3338/3323/handout_3338_CP3338-Handout.pdf http://autocadtips1.com/2013/01/30/up-and-running-with-the-2013-core-console/ About writing scripts - There is no documentation on it, but it is simple to create it. Just try all the commands (both native AutoCAD commands and your custom commands) in the sequence that you want them to run along with any inputs that you want to provide. Copy them to a text file and name it as a .scr file. Here is a nice blog post explaining the steps : http://www.cad-notes.com/learn-how-to-write-command-scripts-for-autocad-and-automate-your-plotting/ Regards, Balaji
Hello, I am adding below an update from Thomas Brammer, who kindly shared the results of his tests for publishing drawings in parallel using AccoreConsole. I hope this will help many others using it for a similar workflow. <<< I added a thread-dependant user name to the /isolate switch as you suggested. But I still saw some AccoreConsole failing. Then I also added a thread-dependant working directory path to the /isolate switch: /isolate user c:\temp\acc\ Now all my AccoreConsole calls work like a charm! AccoreConsole even creates the directories if they don’t exist! >>> Regards, Balaji
Hi Fred, Thanks for the update. Glad you resolved the issue on your own. Regards, Balaji
Image
By Balaji Ramamoorthy When a material is assigned to the SubDMesh, the mapper (AcGiMapper) associated with the material takes care of most of the details involved in mapping the texture on to the SubDMesh. The mapper can be configured for its projection, scaling, translation, tiling and such parameters that affect... Continue reading
Posted Dec 1, 2015 at AutoCAD DevBlog
Hi Андрей, Thanks for sharing this nice blog post. Regards, Balaji
Hi Rafael, Sorry, i do not know if AutoCAD Student version can run Lisp code. If you do have it installed, can you please give it a try ? Here is the Lisp code that helps synchronize the viewport scale and the annoscale : (vl-load-com) (defun c:sync() (command-s "_.pSPACE") (print "Select a viewport") (setq vpsel (ssget ":E:S" '((0 . "VIEWPORT")))) (setq vplist (ssname vpsel 0)) (setq vport (vlax-ename->vla-object vplist)) (command-s ".mspace") (setq scale (getvar 'cannoscalevalue)) (command-s "_.pSPACE") (vla-put-CustomScale vport scale) (vla-regen (vla-get-ActiveDocument (vlax-get-acad-object)) acAllViewports) (setq vpsel nil) ) Since you haven't used Lisp before, here are the steps to try it : -Copy the above Lisp code to notepad and save it as a file with .lsp extension -Run AppLoad command and choose the lsp file that you saved previously -Start AutoCAD and switch to paperspace -Type "(c:sync)" in AutoCAD's command prompt and hit enter -Choose the paperspace viewport that you want to synch. Regards, Balaji
Hi Kerry, I had implemented the code in this blog post initially in VB.Net and later used an online converter to do the C# conversion for the sake of creating this blog post. The converter had introduced this and i did not notice it. Sorry, I do not know what that means. But, the C# version did build and run ok in AutoCAD. Please do let me know if you have any information on it. This is the converter that i had used for my VB.Net to C# conversion : converter.telerik.com Thanks Balaji
By Balaji Ramamoorthy Here is a short code snippet that creates an MLeader based on an existing MLeaderStyle. For the MLeader's text to correctly follow any changes made to the MLeaderStyle, it is necessary to clone the MLeaderStyle.DefaultText and use it as the MLeader's text. Creating a new MText without... Continue reading
Posted Nov 19, 2015 at AutoCAD DevBlog
Hi Ranjan, I do not think, ATIL can read a .cal image format. The list of codecs in the ATIL folder does not have a codec for it. I can only find JFIF, JPG, PNG, TIFF and BMP codecs. Also, ATIL is a C++ only libary. If you want to use ATIL, you may need to create a C++ module and have it loaded in AutoCAD. You can then have your wrapper function invoked from .Net. Regards, Balaji
Hi Peter, Thanks for bringing this to my notice. The screencast video looks ok. But, there have been some recent format changes to this blog and the embedding of screencast videos does not seem to be working as it did earlier. Sorry about that. You can watch it full screen by scrolling down and clicking on the up arrows at the bottom right. Hope that helps. Regards, Balaji
Toggle Commented Oct 27, 2015 on Batch rendering of drawings at AutoCAD DevBlog
By Balaji Ramamoorthy In a recent query, a developer wanted to batch render drawings in AutoCAD. The API does support rendering to a file as explained in this blog post. But, if you do not want to code all that and would prefer running AutoCAD's Render command on a set... Continue reading
Posted Oct 26, 2015 at AutoCAD DevBlog
Image
By Balaji Ramamoorthy If you need a preview image for a linetype to show in a picture box or for any other purpose, AccoreConsole should come in handy. To get this working, pass-in a blank drawing to AccoreConsole and have your plugin that loads in AccoreConsole load the linetype and... Continue reading
Posted Oct 25, 2015 at AutoCAD DevBlog
Hi Wojciech, Sorry, we do not provide binaries. But, it should be possible to build it by downloading the sample project attached to the blog post. For AutoCAD 2014, the platform toolset while building the sample project is to be set as v100. "v100" should get listed in the toolset dropdown in any of the Visual Studio versions, if VS 2010 is installed is also installed in the system. If there are specific issues that you face in getting it to work with AutoCAD 2014, please let me know. Regards, Balaji
Hi Chris, Sorry for the delay in getting back to you. The layout's tab order property should let you know that info. Regards, Balaji
Toggle Commented Oct 24, 2015 on Listing the layout names at AutoCAD DevBlog
Image
By Balaji Ramamoorthy The toolbar creation and docking in AutoCAD API is exposed via the COM API. Although the toolbars can be docked using the COM API, it does not provide a way to arrange the docked toolbars as in multiple rows. AutoCAD internally uses a method that can dock... Continue reading
Posted Oct 9, 2015 at AutoCAD DevBlog
Image
By Balaji Ramamoorthy When running the _RevCloud command from a script or using acedCommandS, the options presented in AutoCAD's command window did not match the options that one gets when running _RevCloud command in AutoCAD UI. The option to set the Revcloud type was not appearing when invoked from acedCommandS.... Continue reading
Posted Oct 8, 2015 at AutoCAD DevBlog
By Balaji Ramamoorthy The High-Level API wrapper for creating constraints was created by my colleagues Philippe Leefsma and Gopinath Taget which simplifies the creation of constraints using the API. In a recent query, a developer reported that the library was not helping create a coincident constraint between a Line and... Continue reading
Posted Oct 5, 2015 at AutoCAD DevBlog
Image
By Balaji Ramamoorthy As you may already know, the API for the graphics system changed in AutoCAD 2015 as explained in this blog post : Graphic changes in AutoCAD 2015. Also, AutoCAD 2016 renders using the RapidRT renderer that replaced the MentalRay renderer that was used by the previous AutoCAD... Continue reading
Posted Sep 24, 2015 at AutoCAD DevBlog
By Balaji Ramamoorthy In this blog post, we will look at modifying an associative path array. A path array can either be using the item spacing or the item count depending on how the path array is configured in its properties. The below code snippet decrements the item count or... Continue reading
Posted Sep 17, 2015 at AutoCAD DevBlog
By Balaji Ramamoorthy In this blog post we will look at refreshing the external references palette in AutoCAD. Before we get into the details, here is some background information on why it might be required to refresh that palette. The external references palette in AutoCAD turns into an Enhanced Standard... Continue reading
Posted Sep 17, 2015 at AutoCAD DevBlog
Hi Lalit, This blog post should help you get started : http://through-the-interface.typepad.com/through_the_interface/2013/01/performing-boolean-operations-on-autocad-solids-using-net.html Regards, Balaji