AutoCAD .NET :: Writing Tool To Add Custom Drawing Properties

Jul 20, 2012

I have installed the autocad ObjectARX 2011 and .Net wizzard to start writing a .Net application for adding custom drawing parameters to all our acad drawings.  I have found two issues detailed below.  This is my first attempt at using c# with autocad so any pointers on what I am doing wrong will be well received.

1.  If add the AcDbMgd.dll and AcMgd.dll references and set copy local to false as the documentation advises then I get a FileNotFoundException, could not load file or assembly 'acdbmgd'.  If I set the copy local to true then the error goes away.

2.  I tried using the code below to add a paramater but I get an exception on the first line System.TypeLoadException: Method 'CopyTo'.

Autodesk.AutoCAD.DatabaseServices.Databasedatabase = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Database;

//Users builder to edit the summary info (file properties) of the drawing

Autodesk.AutoCAD.DatabaseServices.DatabaseSummaryInfoBuilder infoBuilder = new Autodesk.AutoCAD.DatabaseServices.DatabaseSummaryInfoBuilder(database.SummaryInfo);
string key = "test";
string value = "testvalue";
infoBuilder.CustomPropertyTable.Add(key, value);
database.SummaryInfo = infoBuilder.ToDatabaseSummaryInfo();

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: How To Lock Custom Properties Of Drawing File

Jun 7, 2012

I have Custom Properties on Drawing File. Naturally it is non-editable. But from AutoCAD When I write Command "DWGPROPS" it can be edited. I does not want it to be edited at any time.

Is it Possible to lock it using Coding? Or CAN we disable the Command "DWGPROPS" of AUTOCAD into AutoCAD?

View 3 Replies View Related

AutoCAD LT :: 2008 - Update Template Which Has Custom Drawing Properties

Sep 7, 2012

I'm trying to update a template which has custom drawing properties.  In AutoCad LT 2012 (and obviously full autocad) there is an UPDATEFIELD command which updates the drawing properties.

This command is not known in my version of AutoCad LT 2008.  Is there another command I can use? 

View 1 Replies View Related

AutoCAD 2013 :: Print Out Report Of Drawing Custom Properties?

Jul 31, 2013

If we're in a drawing and pick the AutoCAD application button > Drawing Utilities > Drawing Properties we can, and do, use this to enter custom propterties. Is there any way to print out a report of a drawing's custom properties? Ideally, i would like to be able to select multiple drawings and print a report of each drawing's properties.

View 9 Replies View Related

AutoCAD Visual LISP / AutoLISP :: Update Custom Drawing Properties

Oct 1, 2012

how to access custom drawing properties using LISP.  It was in a discussion initiated on 01-06-2011, subject:  Custom drawing properties.

One solution was to use the following method:

(setq  si (vla-Get-SummaryInfo (vla-Get-ActiveDocument (vlax-Get-Acad-Object))))
(vla-GetCustomByKey si  "DWGPROP1" 'pval)
(princ pval)

Now taking it a step further, using LISP, how can I "update" my custom drawing properties?

Inventor RS 2011
AutoCAD Mechanical 2011
ASD 2013
Vault Collaboration 2011
Windows 7 Pro

View 2 Replies View Related

AutoCAD Inventor :: Send Custom Properties From Selected Assembly View In Drawing To All Parts

Nov 4, 2013

I want to create a rule with CommandManager.pick who see the name of assembly and send a custom ipropertie to all parts of this assembly view in drawing, this is my none finish rule.

Dim doc = ThisApplication.ActiveDocument
Dim entity = ThisApplication.CommandManager.Pick(
SelectionFilterEnum.kDrawingViewFilter,
"SÉLECTIONNE UNE VUE")
modelName = IO.Path.GetFileName(ActiveSheet.View(entity.Name).ModelDocument.FullFileName)
PART = Left(modelName, 11)
EXT = Right(modelName, 3)
FIRST = Left(modelName, 3)

[code]....

I have the rule "SEND TO PARTS" in my assembly but i have this error message

MEMBER NOT FOUND. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))

View 8 Replies View Related

AutoCAD Inventor :: Custom / User Properties In View Label Of Drawing Template / Style Library

Apr 18, 2012

Is there a way that we can set the view label in the style library to show custom/user Properties?

We have set our iam/ipt templates to have some custom properties which we wish to display in the view label when the view is created however there this no way to add these properties to the label.

I find this a little strange as you can add these user Properties to the parts list in the style library? (I've added some screen caps to show what I am talking about)

View 8 Replies View Related

AutoCAD Civil 3D :: Properties Palette Started Only Showing Current Properties For The Drawing

May 22, 2013

the properties palette started only showing the current properites for the drawing and not the properties  of the entity selected. what causes this i am using autocad civil 3d 2013.

View 9 Replies View Related

AutoCAD Inventor :: WriteDataToFile Outputs Incorrect Drawing Sheet Titles While Writing To DWF

Apr 26, 2013

I created a Multi Sheet drawing file.(.idw)While the file to DWF format with WriteDataToFile, the Title Block shows wrong Sheet number.For a 5 Sheet drawing, the output DWF files contain following Titles:

1 of 2
2 of 3
3 of 4
4 of 5
5 of 5

Whereas expected titles should be:

1 of 5
2 of 5
3 of 5
4 of 5
5 of 5

Interestingly, if I create a multisheet Drawing and Activate all sheets one by one before saving it.The DWF files outputted show correct Titles.Hence in the first case, I used Activate() on all sheets before writing them with WriteDataToFile. But could not get correct Titles.

View 1 Replies View Related

AutoCad 2D :: Drag Previous Custom Command Into Existing Custom Tool Bar

Nov 27, 2013

When I drag a previous custom command into an existing custom tool bar and edit the custom command (then rename the command in the Name and Command Name) it also changes the previous custom command that I originally drug into the toolbar. What am I doing wrong?

View 2 Replies View Related

Lightroom :: Drawing And Writing In LR

Nov 25, 2011

I've been exporting my images to PS to add text, arrows and circles because of the generally assumed information that LR did not have graphic or text on image capability except for watermarking and print titles that can be JPEGed. Using an old technique with the local adjustment brush I found an easy way to do all of the above that might be of use to some of you. A while ago I saw a post where someone pointed out that you could blacken or white-out parts of your image with the local adjustment brush by just moving the Exposure and Brightness controls to the extremes (left for black, right for white). Today I needed a black arrow to point to a white blob (Snowy Owl) about a mile and a half from my 600mm lens and realized if I set my local area adjustment brust as follows it would do what I wanted. I increased my flow to 100%, my feathering to 0, adjusted the size to small, set my Exposure to -4.00 and Brightness to -200 and started writing a nice black line. With a little practice it came out ok. If I moved the Exposure and Brightness all the way to the right, I got a nice white line. If I reduced exposure and brightness by half and chose a color, I could write or draw in color. After using LR for 6 years or so, it's nice to find this capability.

View 5 Replies View Related

AutoCAD 2010 :: Custom AutoPurge Tool In A Custom Toolbar

Nov 9, 2012

We are a firm using ACAD 2011 w/ a custom toolbar that has an Auto Purge "tool" it currently deletes duplicated layers, reg ops, duped scales etc. we are wondering what else it can do (or any other tools that may be of use) or how can we get it to do more for us, like restrict referencing files from "unwanted" locations and any other tools that are essential to reducing the size of a drawing so its now so slow

View 3 Replies View Related

AutoCad :: Add Custom Field In Properties Box

Feb 21, 2012

I’m currently in the process of creating new tool palettes and all the components blocks I’m storing, I know the weights of, is there a way to add a custom field in the properties box say the weight for example, so I know how much something will weigh by clicking on its properties .

View 8 Replies View Related

AutoCAD .NET :: Add Custom Properties For Object (for Example Line)?

Aug 7, 2012

I saw that I can add Fields or store data in dictionaty, but those data are not showed in Properties Windows.

In not Acad-application (but .net application) I can create property description and add "virtual" properties with the use of designer. In Aced it doesn't work.

Is it possible to add custom properties from .NET?

View 4 Replies View Related

AutoCAD Inventor :: Custom Properties In Drawings

Dec 30, 2011

In Solidworks they had something called custom properties that were generally setup in the models where you had the property names and then values would be filled in to automatically populate drawing titleblocks.  I found this, but I can't get the drawing description to keep changes and update the drawing.

View 9 Replies View Related

AutoCAD .NET :: Deleting / Resetting Custom Properties?

Dec 21, 2011

I have been programming our document and version control values into the sheet set object, as a result the custom property list per drawing is getting a little large and is becoming a bit hard to manage. There are now properties with values that are no longer needed. Is there a way to delete or clear or maybe reset the customproperty bag per sheetset object / sheet object?

I have been playing around with code that looks like this:
 
Private Sub DeleteCustomProperties(ByRef myItem As IAcSmPersist, Optional ByVal Lock As Boolean = True) ''Throw New NotImplementedException Dim myDB As AcSmDatabase = myItem.GetDatabase Try Select Case myItem.GetTypeName Case "AcSmSheetSet" If True Then Dim mySheetset As AcSmSheetSet = myItem mySheetset.GetCustomPropertyBag.Clear() End If Exit Select Case "AcSmSheet" If True Then Dim mySheet As AcSmSheet = myItem mySheet.GetCustomPropertyBag.Clear() End If Exit Select End Select Catch ex As Exception End Try End Sub
 
but when i get to "set" the new custom properties (which works normaly when updating a custom property or adding a custom property to a custom propertybag that I have not "cleared"), I am getting a object not set to an instance error...

Do I have to "recreate" the custom propertybag with the InitNew(ByVal pOwner as IAcSmPersist).

View 1 Replies View Related

AutoCAD 2010 :: Custom Sheet Set Properties

Sep 6, 2012

It took me a long time & effort to add all 190 custom sheet set properties (Our Frame/template is complex). When i found out that I could not re-order the sheet set custom properties I was really pleased.

My problem;

I'm trying to add a FIELD with some of the sheet set custom properties. Why are the field not seing ANY of the 190 properties I added to my sheet set? see picture

I really love all of thoses fancy new feature Autodesk add year after year, I mean, you know, NURBS modeling & stuff... Trully great work Autodesk!

View 6 Replies View Related

AutoCAD 2013 :: How To Add Custom Properties To Objects

Aug 13, 2013

Is there any (non programming) solution where I can add custom data/properties to objects in plain AutoCAD?

(I know I can in Civil 3D though, using Notes/Extended Properties etc etc)

We want to allow users to add their own unique ID to all their drawn objects, and we don't want to use Entity Handle as that is not anything we can choose  ;-)

We're using that ID to connect other datasources (ODBC) to Navisworks and we would like it to work even from AutoCAD, even though we have Civil 3D inhouse.

using plain AutoCAD straight out of the box?

View 9 Replies View Related

AutoCad :: Sheet Set Manager And Custom Properties

Nov 7, 2013

I have a SSM set up with both Sheet Custom Properties and Sheet Set Custom Properties.

When I start a new project, i can populate both areas of the main SSM. I'll create my sheets and have them self populated by the "root" SSM settings (if you will)well now, lets say i need to change the date of the sheets from the past.. to the future submittal date. I set it in the "Sheet Custom Properties" in the "root" SSM and then I have to go to each sheet; right click --> Properties each sheet and change the custom properties.

Basically, is there a way to have the sheets (after created) to automatically update to the new date?

View 1 Replies View Related

AutoCAD .NET :: Deleting Custom Properties Using SheetSet Manager API

Oct 29, 2013

I currently use code similar to Lee Ambrosius's 2009 AU handout that shows how to set/create custom properties. URL.... search for the header 'Adding Sheet Set and Sheet Properties'.

I have now accumulated numerous unused custom properties in my sheet set.  I haven't been able to find a way to delete these additional custom properties.

Because I use multiple subsets with multiple sheets for printing, I would rather not have to go through all the sheets, store all the custom properties I need, destroy all the existing custom properties, and then re-create just the ones I need. how to delete individual custom properties.

View 2 Replies View Related

AutoCAD Print / Plot :: Crash On Custom Properties

Apr 12, 2013

When I try to modify the custom properties for the HP t2300, Autocad C3D 2011 instantly becomes non-responsive and hangs.  After a few seconds, every other open app suffers the same fate.  If I have task manager open to the performance tab, I can see memory use escalating rapidly.  Either I use Taskmanager to kill Acad quickly, or I end up killing the power to the computer and restarting the hard way,

the plotter is set up on the network with separate queues for Postscript and HPGL.  Accessing the PC3 for the PS queues has no problem, it's only the HPGL queue that hangs me up, and only in C3D 2011 (and Civil3d as AutoCAD)

LDT and LDC Map 2009 do not have the problem,. nor does Map3d 2011, and TrueView 2013 is also fine.  All of these are pointing to the same set of PC3, PMP, and CTB files.Other applications do not have any problem getting to the printer properties, just Civil3d 2011..

View 1 Replies View Related

AutoCAD Inventor :: Balloons To Call Out Custom Properties?

Oct 31, 2013

I want my custom property to defined as item #. That Item # then is represented in the balloon.

reasoning is that then engineers wont have to check drawings anymore for the guess work involved in matching the part balloon to each individual part in the assembly being called out.

I can then focus on creating a BOM that shows the different item#'s and the user can quickly go through it.

View 4 Replies View Related

AutoCAD Civil 3D :: Updating Sheet Set Custom Properties

Dec 2, 2013

I have a set of drawings with a large number of sheets.  I need to do a mass edit of the properties for each sheet (for example update the revision number, date, checked/design/approved/drafting initials, description).  The updated properties are largely similiar.

Is it necessary to update each sheet's custom properties individually, or is there an easier method?

View 2 Replies View Related

CorelDRAW X4 :: Change Cursor From Pointer To Text Writing Tool?

May 27, 2011

Is there a key I can press that will change my cursor from the pointer to the text writing tool?

View 3 Replies View Related

AutoCAD Inventor :: How To Add Custom Materials In Actual Material Properties

Jul 4, 2011

I am looking for ways to add actual custom materials - not (just) in appearance, but in actual material properties (elasticity, etc). I have looked at wiki and searched this forum (and others) but I haven't been able to find anything of the sort... but the properties of the few aluminium alloys available are not those that we use... besides that we need them at specific temperature ranges (and honestly, I haven't been able to find any temperature controls in the FEA yet either.) And.. is there a more direct, faster, way to assign materials then [big I Pro button] > iPropperties > Physical? Right click on the solid and selecting "material" seems so much more ideal.

View 2 Replies View Related

AutoCAD Dynamic Blocks :: Rearrange Custom Block Properties?

Aug 18, 2009

Is there a way to rearrange custom block properties in a DB?

View 9 Replies View Related

AutoCAD Inventor :: Custom Properties Inside Part List

Sep 23, 2013

I have a problem here. I've created a tube & pipe assembly. Now, I want to know whether  I can automatically generate "Location to" and "Location From" of my tube assembly. For example, tube A origin from part A goes to part B. So I want to automatically generate those. Is there is a way or do I need to type in manually.

View 1 Replies View Related

AutoCAD Civil 3D :: Part Building - Assigning Custom Properties

Aug 7, 2012

Is it possible to use a custom properties within part builder to calculate pipe sizes?

Within part builder I have created a new parametric part under the rectangular pipe chapter.

This new parametric will represent a electrical conduit ductbank that will vary in size depending on the number of conduits in the ductbank. For example a 2 x 3 ductbank would have 2 columns and 3 rows of a 3" conduit. So the width and height of the rectangualr duct bank would be calculated this configuration. I will have up to 12 rows and coluimns in a single ductbank, so I might have a 10x10, 3x12, 12x 1, etc.

I have a custom pipes catalog and within the AeccPartParamCfg.xml I have created 2 custom propertes named ROWS & COLUMNS.

My question is can this custom property be used to calculate the the height & width on the rectangular pipe within part builder? Once I draw my pipe I would like the ability to edit ROWS & COLUMNS within the Pipes Properties to change its size. is this possible?  See image below.

View 3 Replies View Related

AutoCAD Inventor :: Using Custom Section Properties In Frame Analysis

Jan 23, 2012

I am busy constructing my own Structural Shapes Library in Inventor 1012.During the Authoring and Publishing step I mapped Cross Section Properties (Ixx, Iyy, Torsional Section Modulus, Torsional Rigidity Modulus etc) to set parameters in my iPart table.

I have noticed that once this part is then used in Frame Generator to create a simple beam and then analyzed with the Frame Analysis tool, the analysis tool uses the geometry of the part to calculate these properties.

Is there a way that I can force Inventor to use the properties in the iPart Tables?  I am worried that any errors in creating the cross section geometry will be carried into the Cross Section Properties calculated by Inventor.

View 2 Replies View Related

AutoCAD 2013 :: How To Stack Text In Sheet Set Custom Properties

Aug 9, 2013

How can I stack text in a custom sheet set property without editing custom properties and adding another line.  The clients name is much longer than normal.

View 1 Replies View Related

AutoCad :: Sheet Set Manger / Unable To Setup Custom Properties

May 15, 2012

Now that I have all my custom properties set up I can't seem to update the custom ones that I made. The custom properties I have added do not seem to work when I update them the through the Sheet Set Manger properties.

View 5 Replies View Related







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