Jigs
-
I'm sure some of you will be relieved to see I can still (more or less) manage to write code for AutoCADβ¦ the last few days I've been feeling quite under-the-weather, so today's post is a little bit of "comfort code": sometimes while you're brain is struggling to handle the unfamiliar, it's very happy to […]
-
Our old friend Roland Feletic emailed me last week. He'd been having some trouble with this previous post when jigging blocks with multiline attributes. Roland had also identified some code in this post on another blog which worked properly for him. I spent some time looking into what was wrong with the original post. It […]
-
Many thanks to Holger Rasch who worked out how to fix the code in this previous post. It really doesn't matter that 3 years have passed, Holger β I have no doubt people will greatly appreciate the fact the code can now run without causing the annoying display issues it produced previously. Holger made a […]
-
I wasn't expecting to write a third part in this series of posts, but then Samir Bittar went and asked a follow-up question that I felt obliged to look into. Thanks for the suggestion, Samir! π Samir basically wanted to provide the user with more feedback as they're selecting the nested entity β so that […]
-
I was planning to post about Autodesk University 2013 today, but things have just been too hectic. I have a 3-hour layover in Heathrow on the journey home β which starts this evening β so I'll try to use that to post a summary of this year's AU as experienced by yours truly. In the […]
-
So after several posts leading up to the big reveal, as it were, in today's post we're going to see the full "De-skew Raster" application in action β and give you the complete source to fool around with. The main addition over where we were in the last post is the HTML5 and JavaScript UI […]
-
I've learned a few things since the last post, where we complemented AutoCAD's new JavaScript API with some additional .NET functionality to work around an issue that existed in the code we'd developed in the previous two posts. Firstly, I found out there's a better way for your jig to display transient graphics than via […]
-
After having some fun writing our first jig inside AutoCAD, last week, and calling it either from an HTML page or an AutoCAD command defined in a .js file, in today's post we're going to see how we can use AutoCAD's .NET API to extend its new JavaScript layer. We're going to take a concrete […]
-
Just to complement yesterday's post showing how to define a simple jig using JavaScript, here's the same code from a separate .js file: var doc = Acad.Application.activedocument; var center = new Acad.Point3d(0, 0, 0); var radius = 0; var trId; function pointToString(pt) { var ret = pt.x.toString() + "," + pt.y.toString() […]
-
After talking about the architecture of our JavaScript API in this recent post β and mentioning the approach we expect developers to take when creating geometry in one of the comments β I thought it would be worth spending the time to write my first JavaScript jig in AutoCAD. For those of you who haven't […]