AutoCAD .NET :: Converting COM-based Application

Nov 5, 2012

I currently have a Windows VB.net app that uses COM to open/save/close and manipulate drawings in AutoCAD..Here's how I open a drawing
           
AutoCAD_CurrentDwg = AutoCAD_Instance.Documents.Open(strAutoCADFilePath)

I work with various blocks and their attributes like so
 
Dim AutoCAD_Block_Attributes As Object = AutoCAD_Block_Reference.GetAttributesFor Each Me.AutoCAD_Block_Attribute In AutoCAD_Block_AttributesDim strAutoCAD_Block_Attribute_TagString As String = AutoCAD_Block_Attribute.TagStringAutoCAD_Block_Attribute.TextString = strSomeDB_Value
 
As I mentioned, this runs external to AutoCAD but I was wondering if it would be beneficial to re-write the app to run within AutoCAD... also, I believe that COM is "obsolete"? I think that my app could be revised to run inside AutoCAD via NETLOAD, using ObjectARX? One concern I have is that my app right now works with many versions of AutoCAD, not need to re-issue because my DIM statements are generic...
 
Private AutoCAD_Instance As Object Private AutoCAD_CurrentDwg As ObjectPrivate AutoCAD_Document As Object

View 4 Replies


ADVERTISEMENT

AutoCAD .NET :: Windows Form Based Stand Alone Application

Feb 9, 2012

i developed a windows form based stand alone application in Vb.net 2010 that calculates all the geometry data needed for a Spur Gear ,my final goal is to send all Calculated data needed in Autocad 2012 and draw automatticly the Spur Gear.

At first i started to experiment my self with a simple only task (created a new project only for this) to draw 4 circles with the same center (radius1,2,3,4) in autocad with a simple click of the command button.

The code i used is the following (for 1circle) but it returned a error  like this>> SendACommandToAutoCAD()-->>Could not load file or assembly 'Acmgd, Version=18.2.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Runtime
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]....

View 3 Replies View Related

Photoshop :: Convert Pixel Based Files To Vector Based Illustrator?

Apr 23, 2012

Is there a way to convert the pixel based phtoshop files to the vector based illustrator files?

View 2 Replies View Related

Photoshop :: Corrupted CC Application When Desktop CC Shows Application As Up-to-date

Nov 24, 2013

How do I re-install a corrupted Photoshop CC app when the Desk Top CC shows the app as "up to date"?

View 2 Replies View Related

Photoshop Elements :: Some Of Application Components Are Missing From Application Directory

Sep 3, 2012

I bought Adobe Photoshop Elements 9 but get the following alert: "Some of the application components are missing from the Application directory, Please reinstall the application." Can it be reinstalled? It is not available under "History" and none of the available installs appear to be for Mac OS X (Version 10.7.4). S

View 2 Replies View Related

Photoshop Elements :: Some Of Application Components Are Missing From Application Director

Mar 19, 2014

I have PSE9 and a macbook pro 10.9.  I lost the original DVD that came with my purchase of PSE.  Some files must have gotten corrupted because I can't open the program without reintalling.  It says, "Some of the application components are missing from the application directory.  Please reinstall the application."  I have the serial number and all and I registered the product.  Is there somewhere I can download a new copy to install? 

View 7 Replies View Related

Photoshop Elements :: Application Components Are Missing From Application Directory

Nov 5, 2012

at photoshop cs6 extended downloaded in july, i now get the following message: "some of the application components are missing from the application directory. please reinstall the application."

View 2 Replies View Related

AutoCAD .NET :: Filter Based On Layer?

Jul 11, 2013

I have a curve which is a set of lines and arcs.This is present on a layer. code to filter these objects based on layer.I also need to convert all the object ids to a single entity.

View 4 Replies View Related

AutoCAD .NET :: Thematic Based On Attribution?

Jan 8, 2013

Is it possible to do Thematic based on attribution display for  a layer.

For eg: I have a layer called CIty with object data for name, country, etc. I would like to display a common symbol for all city points in ASIA, a different symbol or color for others etc. how can it be done with autocad.

View 5 Replies View Related

AutoCAD Inventor :: BOM Based On Representation

Nov 7, 2013

Is there some way to do a BOM based on a representation?  Also how do I get sub-assemblies to show as the individual parts?

View 2 Replies View Related

AutoCAD .NET :: Select All Text-based Items

May 17, 2011

I'm trying to select all Text-based items (Text,Mtext and Attribute References) in a drawing to check to see if they match a pattern in a regular expression.  Although i have a block with an attribute in the drawing and the selection filter consisting of 

DxfCode.Operator, "<OR"
DxfCode.Start "ATTRIB"
DxfCode.Start "TEXT"
DxfCode.Start "MTEXT"
DxfCode.Operator, "OR>"

It isn't picking up the attribute Reference in the block.  

Is there a workaround using the Editor.SelectAll method and not having to programmatically check each block's attributes? I'm using AutoCAD 2009.

View 2 Replies View Related

AutoCAD Inventor :: Creating IDW Template Based On DWG

May 16, 2012

I was trying to make new .idw (inventor) templates based on .dwg (autocad) templates. For some reason the type face Simplex is not showing correctly on screen and on print outs. I have checked on various machines and result was same.

View 3 Replies View Related

AutoCad 3D :: Create 3D Shapes Based On 2D Drawing

Feb 6, 2013

How to do the automatic creation of 3D solids based on plans and sections element. How 3D objects are created in prosteelu.

View 9 Replies View Related

AutoCad :: Text Based On Parameters / Dimensions

Nov 14, 2011

Is there anyway to generate text based on other dimensions or parameters stored in the parameters manager?

For instance, if I have a line that is 3" long, I'd like to have a note that says 'This line is 3"'. Or, if a circle is X feet in diameter, I'd like to have a note that says 'This circle is X feet'. These are just examples, but I hope you get what I'm saying.

I'm using the new parametric modeling and doing some amazing stuff, but I'd like to parametrize my notes, too, if at all possible.

View 1 Replies View Related

AutoCAD Inventor :: Get XYZ Angle Based On Its XYZ Vector?

Nov 7, 2012

How to get XYZ angle based on its XYZ vector?

There is a value for XYZ angle in iProperties of an occurrence but how to get using VBA.

Any program how to get the property or how to convert XYZ Vector to XYZ angle?

View 1 Replies View Related

AutoCad 3D :: Web Based Orbit Type Of Interface?

Aug 30, 2013

Any web based 3d orbit type of interface?

View 4 Replies View Related

AutoCAD Civil 3D :: Topography Intervals Based On Slope

Apr 4, 2012

I'm working on a permit where I need to display topographic contours, but have different maj/min intervals depending on the slope of the topography. To me, this seems a little strange and makes for misleading information, but it's what the permit requires.

I'm covering a roughly 5000 x 5000 sq ft area with a partially built landfill on it and a rather changing surrounding topography.

View 9 Replies View Related

AutoCAD .NET :: How To Implement Drop-down List (based On IDynamicEnumProperty) In OPM

May 25, 2013

Is there somone who can explain/show a sample of how a custom drop-down list in OPM can be implemented? Based on some articels by Kean Walmsley, I have successfully implemented categorized properties in the OPM using a .NET wrapper and C#. I have a class imlementing the members of the  IDynamic EnumProperty, ICategorizeProperties and IDynamicProperty2 interfaces (based on ObjectARX 2013).

However, I do not really understand how to code custom drop-down list using .NET wrapper and OPM. I am using AutoCAD 2013 and 2014. I have read a lot of posts regarding OPM but there was no useful information in regards to create custom drop-down lists.

View 3 Replies View Related

AutoCAD .NET :: Read Image Name From ImageList Based On Index Value

Aug 4, 2011

I am using ImageList to store a group of images.

I would like to read the image name from the imagelist based on index value.

View 1 Replies View Related

AutoCAD .NET :: Ignore Objects In A Selection Set Based On Coordinates?

Apr 4, 2013

I'm working on a command that lets me select polylines on a specific layer, then converts them to 3d solids. I'm having a slight issue where if a polyline has the same start and end coordinates (this happens in some of our drawings), then the command stops and I get an eDegenerateGeometry error. I want to modify my command so that it detects these objects, removes them from the selection set, and then notifies the users of their prescence so they can be removed manually. The last part i think I can handle, however I'm not sure how to modify either my filter or my routine to detect and ignore these objects. I'm assuming that since i'll want to record these objects to later notify the user, that i'd probably want to modify my routine.
 
using System;using Autodesk.AutoCAD.Runtime;using Autodesk.AutoCAD.ApplicationServices;using Autodesk.AutoCAD.DatabaseServices;using Autodesk.AutoCAD.Geometry;using Autodesk.AutoCAD.EditorInput;using Autodesk.AutoCAD.DataExtraction;using Autodesk.AutoCAD.Colors;using System.Windows.Forms;

[code]...

View 2 Replies View Related

AutoCAD Inventor :: Extract Drawings Based On 3D Model

Jun 2, 2013

Our team is doing program customization in Inventor 2011 that extract drawings based on 3D model. When the program runs and reached the line that has either open, close and save method, Inventor program automatically terminated and “Inventor Send Error Report” appears. When we tried to debug the program and when it reached the line that has either open, close, and save method, we force to exit our customized program but the same case, when it is totally terminated, Inventor program also terminated and “Inventor Send Error Report” appears. When we investigate the problem, we tried several solutions such as setting the active document to new variable, added a method to pause the program for few seconds, etc  but still no effect.

Is there a VBA for Inventor that is intended for 64 bit machine? Because I think we use 32 bit VBA in Inventor. What does “Inventor32bitHost.exe” means in task manager? Is there any relation to Inventor VBA?

View 1 Replies View Related

AutoCAD 2010 :: DXF Based Blocks Insert In Inches Instead Of Mm

Mar 19, 2013

I have a problem when I insert blocks who were originally saved as dxf. 

For years I've been recieving dxf-drawings from our suppliers, and for years I've opened them, saved them as .dwg and then inserted them into my drawings.  Lately, when I insert these blocks, they're scaled up by 25.4...  It appears that AutoCAD converts them to inches instead of in mm. 

When I check the scale of the block in "Properties", the insertionscale is always 1.

I've checked the "UNITS" in the dxf and the dwg, both are mm.  I've checked "INSUNITS", "INSUNITSDEFSOURCE" and "INSUNITSDEFTARGET", all of them have value "4", which is "mm"...

The screenshot above is taken in the dxf-file.  I've used the "DIST" command on the dimension which states "326", and as you can see, the distance measured is also 326...

The screenshot below is taken after I've saved the dxf as a dwg, and then inserted the dwg-file as block into a new drawing.  The same dimension is measured, and then I get this: 

8280.4/25.4=326

View 5 Replies View Related

AutoCAD .NET :: How To Create 3D Polyline Based On Point3D Collection

Aug 23, 2012

I want to create a command:

My selection set consists of dbpoints that exists on my drawing and they are more or less in line

I create a new point3dcollection with this db points

I want to create a 3d polyline based on this point3d collection

My problem is : how to sort this point3d collection based on a picked start point and picked end point?

The only idea I have is:

from start point i calculate the distance to each point3d from collection and based on the results i sort the point3d collection based on distances.

View 2 Replies View Related

AutoCAD LT :: Create Block Array Based On Prompt

Jun 14, 2012

My vision is when someone inserts "block A", a promt will come up and ask "how many of "block A" do you need?" Based on how many you need, it will insert the block along with the arrayed amount the user has typed in.

View 1 Replies View Related

AutoCAD 2010 :: Set Lineweight To Be Color-based Automatically?

Mar 15, 2012

Is there a way to set the “lineweight” to be Color-based automatically?

I’m wondering if there is a way to set the lineweight to be color-based such that all the objects have the same color will take the same lineweight automatically.

Sure, we can control such behavior through the “bylayer” feature but I’m not sure if this very particular behavior might exist in the AutoCAD; color-based lineweigth!

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 8 Replies View Related

AutoCAD Civil 3D :: Editable / Vector Based Maps

Feb 16, 2013

I'm looking for a source where I can purchase maps that i can edit in AutoCAD. We do a lot of work that requires Google Maps-like renderings and would liek to save the time we currently spend creating these maps manually.

View 3 Replies View Related

AutoCAD Architecture :: Generate Roofs Based On Plines

Dec 10, 2012

Is there a way to generate a roof based from plines? Like this but without tracing? I need to generate multiple roofs at once with the same slope ect.

View 9 Replies View Related

AutoCad :: Automatically Generate Layers Based On Color?

Oct 10, 2007

Is there a way to automatically generate layers based on color? I just downloaded a CAD object that's only got 1 layer but several different colored lines. It would be extremely painstaking if I had to take each and every line and place it on a different layer. It would be much easier if I could tell AutoCAD 2006 to simply split the object up by color and place each one on a different layer.

View 6 Replies View Related

AutoCad 2D :: Blocks That Stretch Based On Text Length

May 2, 2011

My firm worked on a project recently with a sheet numbering system that created long sheet numbers, ie, MH-101-R1. Since the sheet numbers were so long, they no longer fit in our normal sheet/detail/drawing label blocks. (See attached DWG for an example.)

We are looking to create either a dynamic block or some kind of block that will automatically stretch with the text length.

View 4 Replies View Related

AutoCad :: How To Create Three Side Based Pyramid As A Solid

Dec 15, 2011

I want to create a pyramid with a base of three sides with different lenght. In the end i want to have a solid where i can drag and move the notes to change the hight,lenght and the angle of the sides.

I already managed to draw it in 3d but now i want to convert the drawing into a solid and keep it flexible to change the parameters by draging the notes.

I also tried to extrude a triangle with a specific angle but then i was only able to move the top note up and down changes the hight. Doing it this way the top note also kept beeping in the center-point of the triangle.

View 7 Replies View Related

AutoCad :: Block Attributes Based On Layout Tabs

Feb 24, 2011

I am working on a set of drawings that include attributes that are numerically sheet specific (page numbers and the like)

I saw a previous post that allows tabs to display block info, but is there a way to get blocks to refer to tab info?

Essentially, I am trying to label match lines from page to page. Being able to have these labels refer to the numeric value of the layout tab, tab previous, and/or tab after would be extremely useful and time saving.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved