AutoCAD .NET :: Programmatically Remove Layer From Task

Aug 22, 2011

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


ADVERTISEMENT

AutoCAD .NET :: Programmatically Access Layer Info

Jun 1, 2012

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?

View 1 Replies View Related

AutoCAD .NET :: Programmatically Refresh Layer Usage Information?

Oct 12, 2010

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.

View 7 Replies View Related

AutoCAD Map 3D :: Transfer Text Created In Task Pane To A Layer?

Jul 15, 2013

I am using MAP3D 2012 and have the following query. Under Task Pane and Display Manager I have added drawing data to a drawing layer. Added Style>Text and selected the Object data I want to have displayed (e.g. drawing number). 

Since the drawing is going to be accessed also by users with a simple AutoCAD version I want to copy paste the text from display Manager to a Layer In layer Properties  Management.

 However, every time I create a new layer and copy paste the text does not appear or carry through.

View 5 Replies View Related

AutoCad :: Unable To Delete Or Remove A Layer?

May 25, 2012

In this particular drawing I have a layer I can see in my Layers Properties Manager but I cannot find in my drawing and it will not let me remove it.

this is a record of what I have just done:

Command: PURGE
Purged *D19.
Purged *D27.
Purged *D32.
Purged _None.
Command: *Cancel*
Command: <Switching to: 3D>
Regenerating layout.
Regenerating model - caching viewports.

[code]....

View 9 Replies View Related

AutoCAD .NET :: How To Remove All Unprotected Layer Filters From DWG

Oct 10, 2013

I am trying to remove all unprotected layer filters from a DWG and getting the following result:

Command: CLEANLF
Deleting layerfilter[0]: 'Test1'...
Autodesk.AutoCAD.Runtime.Exception: eInvalidInput
   at Autodesk.AutoCAD.LayerManager.LayerFilterCollection.Remove(LayerFilter value)
 
[Code]...

Here is the code that produced this output. Why the Remove throws this exception?

 <CommandMethod("cleanLF")> _
Public Sub cleanLF_Method()
Dim ed As Editor = MgdAcApplication.DocumentManager.MdiActiveDocument.Editor
Dim db As Database = HostApplicationServices.WorkingDatabase

[Code]...

 ps I am running AutoCAD 2013 SP1.1 PV: G.114.0

View 7 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Remove Xdata From Layer Zero

Aug 14, 2012

I have a drawing that i know has xdata attached to layer zero. the problem is, it's not an object i can find. Any routine to remove xdata from ALL objects. like a global remove xdata?

View 6 Replies View Related

AutoCAD .NET :: How To Programmatically Change The Position Of The Sun

Sep 21, 2013

How to programmatically change the position of the sun autocad?

View 6 Replies View Related

AutoCAD Inventor :: Printing With Task Scheduler

Nov 15, 2013

I am trying to batch plot a series of IDW drawings through task scheduler, the results is the wrong proportions and size, I am wondering if there is setup command in task scheduler that can be modified or if the proportions are wrong due to the IDW setup within Inventor itself i.e. page not setup correctly.

Autodesk Inventor Professional 2013 SP2 64-Bit Edition
Windows 7 HP Z400, Intel Xeon W3550 3.07GHz
12.0GB RAM, ATI FirePro V4800 (FireGL)

View 2 Replies View Related

AutoCAD .NET :: Way To Programmatically Check If DLL File Is Plugin

Oct 16, 2012

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....

View 9 Replies View Related

AutoCAD .NET :: Programmatically Add Labels To Objects On A Drawing?

Mar 6, 2013

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 Related

AutoCAD .NET :: Change Units To Pixel Programmatically?

Oct 24, 2011

I'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?

View 2 Replies View Related

AutoCAD Civil 3D :: Add Profile Programmatically In 2012?

Apr 10, 2012

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]

View 9 Replies View Related

AutoCAD Inventor :: How To Change Name Of A Document Programmatically (C++ & COM)

Jul 16, 2013

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?

View 1 Replies View Related

AutoCAD .NET :: How To Programmatically Extract The Attributes From A File

Dec 26, 2013

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?

View 9 Replies View Related

AutoCAD Inventor :: Task Scheduler Is Not Responding

Mar 21, 2012

I´m having a problem with the Inventor 2012 Task Scheduler. I´ve done a couple of migration tasks over the last 2 months, actually quite some big tasks on our Vault Server.

Now I´m getting no more access to the application, it´s either showing a message that the server is busy and not responding or the application starts up and sits for a minute in the task bar and then opens up but still I can´t click any menus or create a report to control the tasks I've done earlier.

But I need to check the last couple of tasks to see which files have been successfully migrated and which are not. I know that I can view the logfiles manually but that still leaves me with no more tasks that I need to run to fix our database and Inventor files.

Let the application run with administrator rights doesn't work either. What else could be done to get the task scheduler back up running?

View 1 Replies View Related

AutoCAD Inventor :: Task Scheduler - Reinstall

Mar 12, 2009

My task scheduler crashes as soon as I dbl click on it, does not even go to main window. Is there a way to only reinstall this part of INV Suite.

View 9 Replies View Related

AutoCAD .NET :: Task-dialog - Can't Disable Cancellation

Mar 16, 2012

I'm using TaskForms (Autodesk.Windows.TaskForm), and it's all working pretty well, with one exception. I can't seem to disallow cancellation of the taskform. The class has a property called AllowDialogCancellation, but regardless of what I set that to the dialog still has a clickable X, and can also be closed with the escape key.

View 2 Replies View Related

AutoCAD Inventor :: Possible To End Process In Task Manager

Sep 17, 2012

We have a problem with Inventor freezing when saving idw. It is not possible to end Inventor process in task manager so the only way to quit Inventor is to force a complete PC shutdown.

View 1 Replies View Related

AutoCad 2D :: Workspace Is Not Compatible With Editable Task

Mar 16, 2012

in auto cad structural detailing 2012 when i want to switch to asd reinforcement classic it will now say the workspace is not compatible with the editable task,

View 1 Replies View Related

AutoCAD .NET :: Open A Drawing File Programmatically?

Apr 9, 2012

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.

View 7 Replies View Related

AutoCAD Inventor :: Task Scheduler And Run API / Macro

Jun 27, 2012

Is there a way by which I can run a vba - macro over all the file in a folder using Task scheduler.

Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013

View 3 Replies View Related

Photoshop :: Remove 1 Pixel From All Around The Layer

Oct 8, 2004

can remove 1 pixel from all around the layer using ctrl + something, but I cant remember which book it was, and I cant find info on this online.

This feature is really handy when you are cutting a piece out of a picture with busy background.

View 4 Replies View Related

AutoCAD Inventor :: Command Line - Task Scheduler

Jul 16, 2013

I want to automate the check in of design files to Vault on each PC, prior to running workspace sync (Vault) which does have command line support.

I know you can schedule tasks within the Inventor Task scheduler, but has task scheduled the Inventor Task Scheduler? I suppose in theory you could schedule the launch of Inventor Task scheduler via the Windows one? or is there any need? If the Inventor Task scheduler isn't running, but a task has been scheduled, will it execute the program itself?

View 2 Replies View Related

AutoCAD .NET :: Programmatically Accessing Pipe Data In C3D 2013?

Nov 19, 2012

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.

View 2 Replies View Related

AutoCAD Inventor :: Programmatically Create Virtual Component?

Mar 18, 2013

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 Related

AutoCAD Inventor :: Use Task Scheduler To Migrate All IPT Files

Aug 24, 2010

I am trying to use Task Scheduler to migrate all my .ipt files from 2010 to 2011. When I do it however it gives me the error , "cannot create Task" in a little pop up message box. It does this will types of task , i.e. I can not create any tasks ever.

View 2 Replies View Related

AutoCAD Inventor :: MDT Import Files Via Task Manager

Jan 18, 2011

I created a task to import (convert) a specified folder of MDT files using a specified ini file to ignore the layout drawings (tests resulted in near-useless idws with most missing drawing views - mainly due to our ignorance in creating MDT drawings).  I specified a subfolder as the destination for the converted ipt files.  After the task runs, the ipt files appear in the main folder (where I did not want them), while the destination folder has files with the names of <original part number>.dwg.ipt.  The ipt and dwg.ipt files appear identical and have the same feature tree.

A typical entry in the Import.txt file is:

22926.dwg Get Translator Success   ...InventorConvert MDT Files
dwg 22926.dwg Open Success    ...InventorConvert MDT Files
dwg 22926.dwg Import Success    ...InventorConvert MDT FilesInventor parts converted from MDT files22926.dwg.ipt
dwg 22926.dwg Close Success    ...InventorConvert MDT Files

So I'm not sure what I'm doing wrong here.  It appears to be mainly working, but it will require cutting/pasting/deleting I wasn't expecting.  The main goal here is to create ipt files that our CAM system can (we hope) work directly with, as they dumped the MDT translators a while back.

Inventor Professional 2014 64 SP1
Windows 7 64 bit - SP1
Xeon E5-1620
16 GB Ram
Quadro 2000

View 2 Replies View Related

AutoCAD Inventor :: Why Use Task Scheduler To Migrate Files

Nov 27, 2012

what is the benefit of using Task Scheduler to migrate all of my Inventor files to the latest versions?

I've upgraded several times, but I've never done a full file migration.

View 3 Replies View Related

AutoCAD Architecture :: Programmatically Add Geometry To Duct Fitting?

Jan 30, 2013

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 =

[Code]....

View 1 Replies View Related

AutoCAD Inventor :: Task Scheduler File Naming?

Jan 3, 2013

I am batch publishing .idw files to .dwf and the default file name that it creates is XXXXX.idw.dxf. how to remove the .idw? Is there is setting in Task Scheduler that can be changed?

View 1 Replies View Related







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