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
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
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
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?
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."
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.
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.
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
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.
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.
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.
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.
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;
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?
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:
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.
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!
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.
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.
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.
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.
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.