
CAD开发
sdphg
这个作者很懒,什么都没留下…
展开
-
objectarx.net自动加载问题
用.nen的托管类生成的dll不知道如何才能通过程序或者运行cad的时候自动的加载到CAD中.在创建的cad进程中只有loadDVB和loadARX两个方法,却没有加载arx.net中dll的方法.如果强行在程序中运行netload命令,那么系统会自动弹出一个对话框让用户自己查找,不能满足要求. 如果有哪位兄弟姐妹对这个问题有研究请一定告知,多谢!原创 2006-12-05 16:34:00 · 1787 阅读 · 1 评论 -
Using AutoCAD's file selection dialog from .NET
Today I started putting together some code showing how to link an Excel sheet to an AutoCAD table (watch this space - there should be something posted later this week). As I was working through it转载 2007-09-07 10:38:00 · 1039 阅读 · 0 评论 -
Updating an AutoCAD table linked to an Excel spreadsheet using .NET
Thanks to Viru Aithal, from DevTech India, for providing the code for this post (I converted the C# code below from some C++ he had sent to a developer).In the last post we showed how to create a转载 2007-09-07 10:54:00 · 879 阅读 · 0 评论 -
CommandComplete bonus tool
Most members of my team (DevTech) have a background in software development, having developed code professionally in previous jobs. People often join DevTech because they enjoy the variety and flex转载 2007-09-07 10:37:00 · 858 阅读 · 0 评论 -
Creating an AutoCAD table linked to an Excel spreadsheet using .NET
In the last post I promised to tackle this issue, and so here we are again. :-)Note: the code in this post relies on enhanced table functionality introduced in AutoCAD 2008, so please dont get f转载 2007-09-07 10:39:00 · 1192 阅读 · 0 评论 -
Accessing the active space or layout in an AutoCAD drawing using .NET
This question was asked as comment to a previous post by har!s:Thanks a lot for the code. I have yet to see 2008 and MultiLeader. But I presume that it works on both Model and paper spaces. In转载 2007-10-15 13:56:00 · 917 阅读 · 0 评论 -
Creating a multileader in AutoCAD using a jig from .NET
Im now back from a fantastic break in Italy and am trying hard to catch back up. Next week Im off again to San Diego (work, this time), which may cause further interruptions in blog postings.Thi转载 2007-10-15 13:58:00 · 2438 阅读 · 0 评论 -
AU Unplugged session on AutoCAD development
Just a quick post today regarding an AU Unplugged! topic Ive submitted.The proposed session is called "Developing applications for AutoCAD: best practices for using AutoCADs APIs." Heres the de转载 2007-10-15 13:55:00 · 785 阅读 · 0 评论 -
Driving a basic AutoCAD plot using .NET
I just missed my connecting flight in Chicago, so have 3 hours to pass until the next, and decided to post some code I finally got around to writing on the plane from Zurich.Ive had a few requests转载 2007-10-15 14:00:00 · 1758 阅读 · 0 评论 -
Previewing and plotting a single sheet in AutoCAD using .NET
This weeks posts take the code I threw together last week for single-sheet and multi-sheet plotting, and introduces the concept of "plot preview".Im learning as I go for much of this, so there ar转载 2007-10-15 14:02:00 · 1127 阅读 · 0 评论 -
Free webcast reminder: "AutoCAD: 10 easy ways to crash your AutoCAD addin"
As mentioned in this previous post, tomorrow were delivering a fun (and free!) AutoCAD development-oriented webcast entitled "AutoCAD: 10 easy ways to crash your AutoCAD addin". In case its not obvi转载 2007-10-15 14:03:00 · 899 阅读 · 0 评论 -
Microsoft to release source for .NET Framework Libraries
I thought Id bring your attention to this post on Scott Guthries blog - this is a really exciting announcement for .NET developers everywhere:Releasing the Source Code for the .NET Framework Libra转载 2007-10-15 14:08:00 · 955 阅读 · 0 评论 -
Allowing selection of an AutoCAD plot device and media name using .NET
A comment came in on this previous post regarding how best to know whether a media name is valid during your plot configuration.There are a few approaches, other than the one I chose of hardcoding t转载 2007-10-15 14:09:00 · 2113 阅读 · 0 评论 -
Driving a multi-sheet AutoCAD plot using .NET
Somewhat symmetrically I’m posting this from Chicago airport, once again, but thankfully I’m now on my way home. It was a busy week of meetings, but I did get the chance to put together some code that转载 2007-10-15 14:01:00 · 1834 阅读 · 0 评论 -
Previewing and plotting multiple sheets in AutoCAD using .NET
This was a fun one to work on. The code in this post combines and extends upon techniques shown in two earlier posts: one showing how to plot multiple sheets and the other showing how to preview a s转载 2007-10-15 14:04:00 · 1445 阅读 · 0 评论 -
Plotting a window from AutoCAD using .NET
This post extends this previous post that dealt with driving a single-sheet AutoCAD plot by adding some code to handle selection and transformation of a window to plot.First order of business was to转载 2007-10-15 14:10:00 · 2519 阅读 · 0 评论 -
Creating an AutoCAD multileader spraying out from central text using .NET
Some more fun with multileaders... this post shows some code that adds multiple leader lines to a multileader/MLeader, each of them "spraying" out from the central text. We ask the user for the cen转载 2007-09-07 10:58:00 · 1057 阅读 · 0 评论 -
Creating a spline-segment multileader in AutoCAD using .NET
I thought it would be interesting to spend a few posts looking into the multileader or MLeader functionality in AutoCAD 2008.To get things started, heres some simple code that prompts the user f转载 2007-09-07 10:57:00 · 1113 阅读 · 0 评论 -
Purging registered application names from a folder of AutoCAD drawings using .NET
In the last post we looked at some code to programmatically purge Registered Application names from the drawing currently active in AutoCAD. In this post we take the "batching" code first used in t转载 2007-08-16 11:37:00 · 753 阅读 · 0 评论 -
一个自动加载托管ARX的方法
From:http://discussion.autodesk.com/thread.jspa?messageID=4531456In HKLM/Software/Autodesk/AutoCAD/R16.1/ACAD-301:409/Applications add yourown key with the following values:/myApp"DESCRIPTION"="myAp原创 2006-12-25 11:00:00 · 1213 阅读 · 0 评论 -
arx .net api 的初始化与清除
NET API的初始化与清除 在ObjectARX中,"acrxEntryPoint"函数是ARX程序的载入点,程序的初始化和清除均可在该函数中进行。而在.NET API中则首先需要将初始化代码封装在一个类中,同时该类需要压迫实现 IExtensionApplication接口。该接口包含Initialize与Terminate两个函数。其中Initialize负责加载程序时的初始化操原创 2007-01-23 14:54:00 · 1072 阅读 · 0 评论 -
Optimizing the loading of AutoCAD .NET applications
In my previous post I described how you could use the Autodesk.AutoCAD.Runtime.IExtensionApplication interface to implement initialization code in your .NET module. Building on this, were now going t转载 2007-01-24 15:23:00 · 3185 阅读 · 0 评论 -
Using a modal .NET dialog to display AutoCAD object properties
Firstly, a big thanks for all your comments on the first anniversary post. Its good to know that people are finding this blog useful, and I hope the flow of ideas (internal and external) doesnt d转载 2007-07-09 12:47:00 · 1674 阅读 · 0 评论 -
Using a modeless .NET dialog to display AutoCAD object properties
In this previous post we looked at creating a simple modal dialog and using it to display object properties. This post looks at the structural changes you need to make to your application for the s转载 2007-07-09 12:49:00 · 2522 阅读 · 0 评论 -
Using a palette from .NET to display properties of multiple AutoCAD objects
After a brief interlude were back on the series of posts showing how to implement basic user-interfaces inside AutoCAD using .NET. Heres the series so far: Using a modal .NET dialog to d转载 2007-07-20 16:22:00 · 2000 阅读 · 0 评论 -
Accessing DWG files not open in the AutoCAD editor using .NET
This topic was briefly introduced almost a year ago, in this post. I then looked into the code a little further in a follow-up post. But at the time this topic wasnt the main thrust of the post, i转载 2007-07-20 16:45:00 · 1585 阅读 · 0 评论 -
Accessing the AutoCAD objects referred to by fields using .NET
Thanks to Wolfgang Ruthensteiner for suggesting this excellent topic a comment to this previous post. Heres Wonfgangs question:How do I read back the field code with C# (from an attribute e转载 2007-07-20 16:20:00 · 3319 阅读 · 0 评论 -
用编程方式调用AutoCAD命令的技术
Its quite common to want to call commands from one or other of AutoCADs programming environments. While its cleanest (from a purists perspective) to use an API to perform the task you want, the翻译 2007-05-16 11:21:00 · 3389 阅读 · 0 评论 -
Generating Koch fractals in AutoCAD using .NET - Part 2
This post continues on from the last one, which introduced some code that creates "Koch curves" inside AutoCAD. Not in itself something youll want to do to your drawings, but the techniques shown转载 2007-08-16 11:32:00 · 1001 阅读 · 0 评论 -
Updating a specific attribute inside a folder of AutoCAD drawings using RealDWG from .NET
This post finally takes the code last shown in this previous post, migrating it to use RealDWG to update a folder of DWGs without the need for AutoCAD to be installed on the system. A big thanks to转载 2007-08-16 11:35:00 · 1305 阅读 · 0 评论 -
Purging registered application names in the current AutoCAD drawing using .NET
Purging can seriously reduce the size of AutoCAD drawings by removing unnecessary symbol table and dictionary entries. The PURGE command in AutoCAD allows you to safely purge these non-graphical ob转载 2007-08-16 11:36:00 · 884 阅读 · 0 评论 -
A handy .NET class to help manage long operations in AutoCAD
This post was almost called "Generating Koch fractals in AutoCAD using .NET - Part 3", following on from Parts 1 & 2 of the series. But by the time Id completed the code, I realised it to be of mo转载 2007-08-16 11:34:00 · 1241 阅读 · 0 评论 -
Moving entities from one AutoCAD layer to another using .NET
Firstly I should apologise to those readers using RSS to access this site: Ive been playing around with the configuration, to integrate FeedBurner but also to switch from publishing entire article转载 2007-08-16 11:36:00 · 813 阅读 · 0 评论 -
Free webcast: "AutoCAD: .NET for LISP Programmers"
On October 18th were delivering a free AutoCAD development-oriented webcast entitled "AutoCAD: .NET for LISP Programmers".Check here for our overall API schedule, or go here to register directly. T转载 2007-10-15 14:11:00 · 945 阅读 · 0 评论