I'm implementing an application which uses COM in AutoCAD's ObjectARX interface to automate drawing actions, such as open and save as.
According to the documentation, I should be able to call AcadDocument.SaveAs() and pass in a filename, a "save as type" and a security parameter. The documentation explicitly statses that if security is...
Need to convert MicroStation(dgn) files to pdf file using command line execution
Thanks in Advance
...
I am trying to use the SetXData method on the AutoCAD 2007 COM object, but it is throwing errors.
Example Test:
public AcadEntity getAcadEntity()
{
/// ... Basic code to return a single AutoCAD entity...
}
private void btnTagItem_Click(object sender, EventArgs e)
{
AcadEntity ent = getAcadEntit...
I have a .NET windows forms application compiled as x86 – it needs to be compiled as x86 because it references 3rd party DLLs which are 32 bit. The application uses COM interop to automate Office applications and also AutoCAD. My question is: will my COM interop code work okay on a 64 bit operating system against the 64 bit versions of O...
Are there any libraries (preferably open-source) for parsing AutoCAD files (DWG or DXF)?
...
Has anybody done anything like that?
I need to import 3d objects, done in either AutoCAD or Solidworks, and draw them into a windows form. I only need the object to be viewed in 3D and moved around - no manipulation required.
I am assuming I will need 2 libraries at least, one for a very simple 3D engine, and one to actually get what I...
Hi, I am looking for a easy way to convert Autocad polygons to swf files. Is there a converter for that? Or is there an intermediatory format that can be used to convert from polygons to the adobe flash swfs. Each polygon would be a swf file.
...
I need to create a simple app which can display geometries from Oracle Spatial in C#.
These geometries are exported from AutoCAD Map 3D 2010 to Oracle Spatial.
I need to pan, zoom, manage layers of these objects, events (like right click to popup a contextual menu, potentially different for every object), creating/deleting points (maybe...
Hi all,
I'm thinking about starting to develop a plugin for AutoCAD, but I have absolutely no knowledge of the field. How does the plugin system work? What are the licensing terms? What programming platforms are available?
I'd really appreciate if somebody could give me a primer, or, even better, link to some resources for the total be...
I would like to parse AutoCAD's MText entity and extract the raw text. I see a pattern in the way the text is formatted. If this has already been solved, then I would not need to reinvent the wheel. I have searched online, but have not found sufficient information.
I am searching for any links or references on this subject.
Edit:
To f...
I am creating a class library for AutoCAD with .NET.
The problem is that the methods are called one after another from AutoCAD and first one reads input file and creates List of data in memory. However when the new one is called the list is empty.
I need to find a solution how to keep that data.
The List contains data in my created s...
i try to get the coordinates of a autocad blockreference.
with the code below i can pick a block-reference in autocad, but it always display (0,0,0) as insertionpoint...
isnt the insertionpoint the actual coords of a block?
Sub GetInsertpoint()
Dim oEnt As AcadEntity
Dim varPick As Variant
Dim brBref As AcadBlockReference
...
Given a set of floorplans (in Autocad, svg, or whatever format need be...), I would like to programatically generate directions from point A to point B. Basically I would like to say: "How do I get from room 101 to room 143?" (or for triple bonus points, from room 101 to room 323). Anyone have any ideas how to go about this? I am pre...
In AutoCAD, I use the PlotSettingsValidator.GetPlotDeviceList method to get all the possible plotters. The user then selects one of those plotters. When I go to plot the document, the PlotEngine.BeginDocument method expects one parameter that tells AutoCAD whether or not it should plot to file and another parameter with the file name. ...
I've noticed recently that AutoCAD gets slower and slower after as I debug it, close, then debug again. In addition AutoCAD just freezes when I try to open it without debugging (in or out of visual studio). Has anybody else ran into this problem before and what is the solution?
...
Hi,
I'm currently developing an AutoCAD 2008 Addin in Visual Basic (.Net 3.0, VisualStudio 2010).
I'm able to define my own command and I want the user to be able to cancel my command by hitting the ESC key.
In AutoCAD 2010 or higher there exists the
HostApplicationServices.Current.UserBreak
method. But not in ACAD 2008.
Does anyo...
Hey,
I'm wondering if there is a way to extract the necessary data out of an autocad .dxf file, so I can visualize the structure in opengl?
I've found some old cold snippets for windows written in cpp but since the standard changes I assume 15 yr old code is a little outdated.
Also, there is a book about the .dxf file standard but it'...
How can I loop through the AttributeReferences for a BlockReference and create an exact copy (looks the same to AutoCAD user) of the AttributeReference as a DBText entity. I've seen the code to do this in AutoLisp from the express tools burst.lsp, but I haven't been able to figure out how to translate it to .Net. Here is the simple cod...
Hi all,
I have to read all the tags out of an autocad drawing with information about the model, the cell, the tagset etcetera in which they were found.
Are the following assumptions correct;
tags are only found in tagsets.
multiple tags within a tagset can have the same name.
tagsets are only found in cells.
the names of tagsets with...
I am using the following vbscript to automate AutoCAD
Dim acadObj
WScript.Timeout = 30000'
set acadObj = GetObject(,"Autocad.Application")'
If Err.Number <> 0 Then
Set acadObj = CreateObject("Autocad.Application")
aCadObj.Documents.Item(0).Close(false)
End If
acadObj.Visible = true
Err.Clear()
What it should do i...