AutoCAD .NET :: Programmatically Access Layer Info
Jun 1, 2012i 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?
View 1 Repliesi 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?
View 1 RepliesI have an Inventor license that doesn't include Autocad. We have some old Autocad drawings that I would like to write a program to extract the titleblock info which I believe is probably done with attributes. Not sure though.
is there any way for me to get to that info without having a seat of Autocad? In Inventor we can use apprentice to do similar things.
I want to run a code something like this:
for each ctrl in autocad window
if type of ctrl is palette then
msgbox (Ctrl.name)
end if
next
Practically I want to read the info existing from a palette that is loaded by CADWORX
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.
View 7 Replies View RelatedIn 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.
View 7 Replies View RelatedBasically I have an image that I created that has 3 layers. 1 is a bunch of brush strokes that are red, one with strokes that are green, and 1 with strokes that are blue. What I want to do is take the red layer and make all its strokes green, and vice versa, basically just switching the color of everything on the layers. I would think there is some kind of setting I could just change.
View 1 Replies View RelatedIs there a way to preserve layer info,and pass that info back and forth between graphicEditors?
Gimp does 'select by color' best. But other Editors do something else best.
So I would like to pass the layers around between Editors.
n my Image i have several layers, and two adjustment-layers for manipulating hue/saturation of parts of certain layers. Think something like having a picture of a person, and having the adjustment-layers to change the persons pants and shirt independently. So you can easily make color-variations of what the person wears, and save them, e.g. as jpg.
What I want is to add a little textarea which ends up on each jpg (not meta-data, I mean readable in a corner on the actual image), that gives me the color-values from the adjustment layers that were used to create that very image. So at a later time when I have one of my jpgs and it hits me that this exact color-combination is perfekt I can recreate it easily. Of course I could do it by hand, but is there a way to automate it, using text-variables linked to the hue/saturation-layers?
The Photoshop CS6 Info Palette is not showing before and after in Grouped Adjustment Layers. It only shows the after values on both sides of the Palette.
The two macs with this problem are:
Mac Pro
2 x 2.93 Ghz 6-Core intel Xeon
96 GB 1333 HZ DDR3 ECC
ATI Radeon HD 5770 1024 MB
OSX Lion 10.7.5
The two macs that work correctly are:
Mac Pro
2 x 3.06 Ghz 6-Core Intel Xeon
96 GB 1333 HZ DDR3 ECC
ATI Radeon HD 5870 1024 MB
OSX Lion 10.7.5
I'm using PSP X4, have an image open in edit but I'm not able to add any layer(s). None of the layer type options will remain highlighted for me to choose when I go to new mask layer or new adjustment layer.
View 4 Replies View RelatedJust loaded 2013. Of course right away I get an error. "Internet access is required to access the Help" Well as you can see I have internet access.
View 4 Replies View RelatedHow to programmatically change the position of the sun autocad?
View 6 Replies View RelatedI'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.
View 4 Replies View RelatedI'm using sendcommand to draw various shapes in autocad.
the problem is my application (wpf) uses pixel units while autocad uses inches by default.
how can I change autocad units to pixel programmatically?
I'm not finding any way to add a profile to an alignment using .net api.
Is com the only way?
I can get at pvis via .net, so seems off they would leave out ability to add profiles.
[URL]
I'd hoped that I could change the name of a part document like I did with sketches, simply assignment:
BSTR bstrName ;pPartDoc->get_FullDocumentName (&bstrName) ;wprintf (L"
Full document name was %s
",wchar_t(bstrName)) ;pPartDoc->FullDocumentName = L"Whatever" ;
But the compiler complains about no put method on that last line.How do I change the name of a Part Document programatically?
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 am trying to open a drawing file programmatically(automatically).
So for example.
If I have a file name "test.dwg" and run some custom command like 'openfile", AutoCAD opens "test.dwg" without any prompt.
The following code DOESN'T do the job I want.
Application.DocumentManager.MdiActiveDocument.SendStringToExecute("OPEN", true, false, true)
The problem is I have to hit enter after the above code is run.
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.
View 3 Replies View RelatedI 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 =
[Code]....
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?
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.
In ipart there is an option to add and delete rows when working with inventor graphically.I have displayed the iPart table and the values in gridview using VB.Net.
The user then selects the row in datagridview and clicks the button delete.When the button onclick even is triggered i want to delete the selected row on ipart table inside inventor.
im trying to programatically add a parts list into a drawing whilst programatically creating the drawing - the code works fine without the parts list code. The error its showing is 'Parameter incorect' on the line that sais PartsList.add(... In the past when ive got this error with other code it has been because ive used an incorrect parameter (e.g. decimal instead of an integer).
My error is somewhere inside the oPartsList.add(>>ERROR SOMEWHERE HERE<<<)
oDrawDoc = InvApp.Documents.Add(Inventor.DocumentTypeEnum.kDrawingDocumentObject,AssyTemplate,True)
oSheet = oDrawDoc.Sheets.Item(1)
[Code].....
I loaded a partial customization file by CUI dialog. I would like to programmatically hide / show the menus and toolbars, so when you restart AutoCAD to be permanently hidden or visible.
View 3 Replies View RelatedI would like to open the text style dialog programmatically. Is this possible? Or is there an autocad key-in command that opens this dialog I can use?
View 1 Replies View RelatedIs it possible to define a Curtain Wall programmatically?
View 2 Replies View RelatedA way to update a property set definition programmatically?
Or via a tool palette tool.... I see there is with schedules for instance a right-click option to import a schedule style to update it... but I can't find a way to do this with property set definitions.
This would be in AutoCAD Arch (or MEP) 2012 or 2013.