In C# I noticed that when I loop through the LayerTableRecords in the LayerTable some of the layers in the drawing do not show up. If I look at the layers in the UI it shows the missing layers with a grey icon for their status while the ones that it does detect have a blue icon for their status. The status has to do with which layers that the drawing believes are in use. In the UI you can press a refresh button and this will fix the problem. I want to know how I can fix this through the .NET API, COM API, or command line.
I have a .NET plugin that loads an ArcSDE geodatabase layer programmatically using AcMapMap.LoadLayer(layerFilepath). I have been trying to programmatically remove the layer from the Task Pane using AcMapMap.GetLayers().Remove(layer), but this function is returning 'false' and is not removing the layer.
i can access the General layer properties thru the api (circled in green on image). how can i programmatically access the Attributes (circled in red). is this possible?
I am editing a Postgis table using the OSGeo FDO Provider for PostgreSQL/PostGIS in AutoCAD Map 3D 2012. As i have noticed that the serial type of the ID field does not give an automatic value to de ID field after inserting a new feature in the layer and after checking in (AutoCAD Map seems not to understand de nextval(sequence_name) function in the DEFAULT property of the ID field(thats how the autonumeric numbers work in PostgreSQL)), i am using a database side trigger which gives the next sequence value to the ID field of the new record. The trigger is launched BEFORE inserting a new record.
The problem is that after executing the trigger, in AutoCAD Map all the fields are still shown as null, and they are not displayed until i manually refresh the layer.
Is there any way to auto-refresh the layer after checking in a new feature?
I'm experiencing strange layer comps behaviors since Photoshop 13.0.2 update, on an existing .psd file. If some comps are correctly rendered, some others are not refreshed: layers visibility is not updated, workspace seems to be frozen, using for instance the magnifier tool to zoom in/out renders a completely white workspace, and moving then my mouse pointer above it only refreshes its lower half part (a little bit more actually). Moreover, Photoshop CPU consumption becomes quite high as long as I stay on such composition (around 50% CPU instead of 2% compared to working comps).
I've tried to disable GPU from Photoshop preferences, Machine is a mid-2010 17" MBP w/ i7@2.66. No problem with the same .psd file before upgrading to 13.0.2..
I've just installed photoshop cs2 and every time I go to use the brush, my cpu does some major laggin. I've opened task manager while I begin to draw, and right when I start, the cpu usage shoots up to 100% usage. My specs are:
I have been doing some very simple editing of photo's taking a copy from part of one and pasting it as a new layer on another photo. I can then manipulate the size, placement and orientation easily with my X4 version of PSP.
I just purchased the new x6 and am ASTONISHED that this simple exercise doesn't work at all in the 64 bit version and only partially in the 32bit version of x6. What happens is that the screen isn't redrawing the changes as you move the pasted part around. It can be refreshed manually but gets into such a mess when you are trying to place the image that it's unusable. I go back to X4 and using exact same photo's I can work without any problem.
I'm on win7 ultimate all upto date and an 8800 GTS graphics card with latest drivers. There should be no reason x4 works and x6 does not.
Is there any way to export a 3D dwf that includes layer information? In searching for an answer to this there were some responses that it really wasn't possible, however those were from previous versions of AutoCAD. I'm using 14 now. Is there any new functionality in 14 that allows this?
I am currently working on a project which requires me to run a script several times, probably over 200 times. Ive been racking my brain serveral times over and cannot figure out how to have the selected layer be renamed by its color information. Ive also tried to maybe build a new layer command into the current action I am using, but i keep having a dialog box pop up which interrupts the rest of the action.
Also, is there a way to automate an action according to a swatch. Meaning if I select a swatch can i have it perform the action and then move on to the next swatch in the list, or until the swatch list has been completed.
Iv applied a smart Filter on a layer that I have done a lot of masking work on. By applying this smart filter do I lose all my masking information? Is there a way of applying the two effects on the same layer?
I have a single file with couple objects on different layers. When I copy/paste into other files, the objects seem to be grouped and layer information disappeared. Can I move around objects with layer setting as well?
I have a plug-in developed with the ObjectARX SDK, C#, VS2010 and the Autodesk supplied template. The plug-in is loaded into AutoCAD at start-up via a registry entry.
The plug-in is to be distributed privately and will not be submitted to the 'Marketplace' supplied by Autodesk for AutoCAD products.
I've noticed that there is a section on the AutoDesk website with regards to registering a custom prefix via the RDS scheme [URL]......
Currently we have code within the following areas:
Class Namespaces e.g. "MyNamespace.Utility"FunctionsCustom Commands e.g. "DEBUGDATA"
Based on the current implementation and intended usage/distribution method is symbol registration required? I ask as I am not sure what would happen if another plug-in used by the user has a "DEBUGDATA" command.
If symbol registration is required could you provide a clear example of how developer symbols should be implemented within the code?
I am having a problem with Autocad 2012 LT. It typically runs fine, but after using it for an extended period of time with multiple projects open, it becomes painfully slow to perform basic tasks like copying objects, opening projects, and saving projects. Restarting AutoCAD does not fix the problem, however, restarting my computer does fix the problem. I just don't want to be continually restarting my computer as on average I need to do this 3-4 times per day at work.
I am running Windows 7 64-bit on an iMac12,2
Processor: i5-2500S CPU @ 2.7 GHz (4CPUs) 8 Gigs RAM
I'm looking for a way to programmatically check if a dll file is a AutoCAD plug-in, preferably getting the version too.The only thing I can think of is using
System.Reflection.Assembly.ReflectionOnlyLoad()
to load the dll, search thru its references looking for Acad-specific (acdbmgd etc.) get the reference version, compare it to a list....
My requirement is to programmatically add labels to the objects on a CAD 2013 drawing in one operation (as opposed to typing them in). The labels exist in an external excel spreadsheet. I am new to CAD development.
We have a bunch of dwg files. The requirement is to extract a specific list of attributes from the layers within CAD to a csv file. We are currently manually opening the dwg using AutoCAD and exporting the attributes. This has been time consuming and we need a faster process.
What options do I have to programmtically extract them?
i want to use pictures with my forms and was wondering if i can use them like the way i showed in attached image.
the CaseA image is the one i can currently use and CaseB is the way i want to use. My reason to do this is, i have alot of parameters to change and having both the picture and a menu below/above takes alot of space which also seems redundant.
I made a drawing, inserted a base view and selected an ipart member, in the Model State tab of the Drawing View dialog box.
Now i made a change in the model, one that is enabbled in the ipart member, one that i should see in the drawing, but i don't see the change. the drawing represents the part as i inserted it at first.
Now i found a workaround, i edited the view, chose the active member, which is the previosly selected member, now it updated, but the center lines became pink. now i changed back to the firstly selected member and it updated, but i am sure there is a better way
Have been using ACA 2013 all last week (normally do most of my work with Revit) and this time its been used intensively since install. I noticed that Autdesk 360 was doing allot of syncing. Drawings are open all of the time so the syncing activity is continuous.Then I found that over the last week broadband useage generally is clocking up to 11Gb per day (I get 60 per month), other browsers were slow and I think I have traced the problem to Autodesk 360 - it stoppped as soon as I disconnected from the cloud. It seems there is a huge amount of up and down stream data - turn 360 back on and the router lights start flashing furoiously. The cloud storage is less than 1Gb.
In C3D (2012 or 2013), the Pipe Properties Dialog reports "Hydraulic Properties" of a pipe section. Through .Net (C#), I can access part data such as Hydraulic gradient etc but I cannot seem to find any reference to three members I see on the mentioned dialog aka "Flow Rate", "Junction loss" and "Return period".
I have "fudged" a term "Flow Rate" into the pipe part parameter definition file (AeccPartParamCfg.xml) and can access that programmatically but I think this "Flow Rate" in the Pipe Properties Dialog" is part of the Auotcad database and I cannot seem to find a route to get hold of it.
I am trying to use iLogic to programatically create virtual components in an assembly. These components will by used as iProperty "buckets" to hold Machine Center specific information to be exported to production planning software. This information is hierarchical in nature and cannot be (conveniently) stored in the assembly iproperties directly.
I am trying to add geometry programatically to a duct fitting. This is because the content builder is incapable of correctly building some types of fittings. I found some old code from an Autodesk University class that shows how to add geometry to a AEC object. I have modified it a little to be able to work with a duct fitting but it does not work. The code compiles fine and runs fine without any errors. The geometry is just not added.
[CommandMethod("ACAClassCode", "ExModelerModifyBody", CommandFlags.Modal)] public void ModifyBody() { Database db = HostApplicationServices.WorkingDatabase; Editor ed =
How to avoid overlapping of programmatically created Mtext.
I have createdMtext for the points present the dwg file, so that they get displayed as labels.
But when there are some densely located points, these points overlay and cannot be read. The font size also adjusted. Then too there are lot of overlapping.
How to avoid overlapping of programmatically created Mtext.
Is it possible to auto-reattach dimensions programmatically?
I have an assembly that I'm suppressing/unsuppressing parts in and my drawing dimensions keep getting orphaned. I discovered the "Preserve Orphaned Annotations" option, which keeps them from disappearing on me. I can then reattach the dimensions via the design doctor, but who wants to click the doctor 6 times for 20+ dimensions?