AutoCAD .NET :: Difference Between Database Definitions
Apr 22, 2013
what's the different between
Dim oDb As Database = HostApplicationServices.WorkingDatabase
and
Dim oDb As Database = Application.DocumentManager.MdiActiveDocument.Database
View 3 Replies
ADVERTISEMENT
Aug 6, 2013
I am working on the AutoCAD customization and doing the same by VB.Net & C#.Net. But I just want to know the difference as mentioned below:
1. Insert Block In AutoCAD
Using VB.Net without using DataBase services..Only 1 statement is required to Insert the Block objAcadDocument.ModelSpace.InsertBlock(Required Arguments are here) Using C#.Net with DataBase services
There are many statments are there to insert only 1 block..Like Start Transaction, Lock the document, Get the Object Id Block etc...So my quetion is that when I have to use DataBase services and when not
what is the advantage of doing customization using DataBase services rather than go for wihout DataBase services.?
View 4 Replies
View Related
Jul 30, 2013
what Collapse To Definitions does inside the iLogic Rules Editor. I've read online how it works in applications such as Visual Studio but I don't see any difference in iLogic between it and the other outlining tools such as Toggle All Outlining.
View 3 Replies
View Related
Jun 7, 2013
I am creating a series of Blocks representing cable terminations with labels at each end for terminal number, wire number and wire color for each twisted-cable pair, ie six labels for each pair. There will be blocks for cable configurations with different numbers of pairs. Having created the first block for a single pair, it should be easy to develop the multiple pair versions by copying the elements and renaming the labels, but I have to edit each attribute definition individually - is there a way of globally editing the definitions in the same way that you can edit attribute values when the block is used; eg if I have attribute Tags T1, W1, C1 and want to rename them to T2, W2, C2?
View 3 Replies
View Related
Aug 14, 2012
On my Property Set Definitions I have a attribute table called "ROOM_NO". This is where I enter the full number/character of the room, in my case the value usually looks like "101A", and sometimes "A101B" for Room number.
I was asked to do another table to separate the fields.
ROOM_PREFIX ROOM_NUM. ROOM_SUFFIX.
Separating the room number in 3 attribute tables to "A 101 B"
I was thinking referencing the ROOM_NO table in each box and filtering out the numbers and character. For example in ROOM_PREFIX I would reference ROOM_NO and filter out the number and the suffix letter through a formula. And in ROOM_NUM I would Filter both alphabetical character.
how to write such formula?
View 4 Replies
View Related
Aug 23, 2013
I have been having trouble storing attributes on border definitions. I have multiple borders which need to be used for different types of drawings. I have developed a tool which will use the desired border pragmatically and it works as planned. Currently the logic selects a border based on name, but since this can be edited by the user I need a more dependable way of retrieving a border. I had thought attributes would be the answer, but I'm running into problems. The attributes just won't stick. I've tried to add them manually through the API and with the Attributes Helper tool released.
See below for the code I'm using to add the attributes
Dim oAttr As Inventor.Attribute Dim oAttrSet As AttributeSet Set oAttrSet = oBorderDef.AttributeSets.Add("TestAttributeSet", True) oAttrSet.Copy = True Set oAttr = oAttrSet.Add("TestAttribute", kIntegerType, 12345) Debug.Print oAttrSet.Parent.Parent.Name & " " & oAttrSet.Name & " " & oAttr.Name & " " & oAttr.Value
It will print information leading me to believe that the attribute was added, but if I try to retrieve it either through the attributemanager or manually cycling through the border definitions no attributes exist.
View 4 Replies
View Related
Mar 6, 2007
I've created a dynamic block with two visibility states. The second state is a copy of the first state, but some of the attribute definitions have been moved, along with some of the geometry.
When I insert the block, then toggle between the two visibility states, the geometry changes as I would expect, but the attributes stay in the position dictated on the first state.
How can I make sure that the attributes move for the second state, as I need them to.
View 9 Replies
View Related
Aug 14, 2013
I am a user of AutoCAD 2014 plain vanilla. I created a title block for my company which has worked well for a year or so. Recently, I have been experiencing the following. After inputing info like an address, sheet name etc. into an attribute definition everything will be fine. When I go and work on other other pages in paperspace, and then return, I will find that the text has dropped vertically into an area it shouldn't. how to remedy this? Attached is a screenshot.
View 9 Replies
View Related
Aug 5, 2011
Basically I have a rectangle and want to change the dimensions of it. There are a couple of attributed definitions that I want to stretch the and change it length but I alsowant the attributed definitions to move with the right hand side of the rectangle and the stay a constant distance from the right hand side. Unfortunately when I use the stretch action it filters out the attributed from the object that I can stretch, any way to include these AD’s with the stretch action
View 3 Replies
View Related
Apr 15, 2012
Is it possible to add Actions and Parameters to Attribute Definitions?
View 9 Replies
View Related
Jul 9, 2012
I have a drawing with all my block definitions and the blocks inserted and annotated. Seems that in a previous version of Autocad, I could insert the drawing and cancel the insertion at some point of the insertion command sequence, such that the drawing was not inserted, but all the block definitions remained. I could then use the insert command and all of these blocks were available. Yes, sometimes this made my drawing memory size rather large and I would have to purge the unused blocks later to reduce the memory size of my drawing.
View 1 Replies
View Related
Aug 2, 2010
Any way to automate the import of Style Definition files into the style and standard manager in the drawing environment? If not is there some other way to do it?
View 7 Replies
View Related
Jan 12, 2009
I have created a new property set definition and added two manual property definitions and applied this to all objects. Every object on the drawings has distinct values for these two properties. These property values show correctly on the Extended Data tab of the Properties palette.
I have published to DWFX with AEC property set data set to 'Include'. In the resulting DWFX in Autodesk Design Review I can select each object and see the standard properties but not my special property set data.
View 1 Replies
View Related
Oct 18, 2013
Is there a way to change the material definitions to CTB format in the plot style under the material style? See attached image.
I have a client that wants everything in CTB format and in AutoCAD Architecture. I can get the drawings into CTB but the materials plot way too heavy and when I go in the styles they show Full Saturation or Wide, Thin from the STB plot styles.
The Drawing is in CTB and I am pulling my hair out trying to get the couple materials used set to Color based plotting.
View 1 Replies
View Related
Mar 20, 2012
I'm trying to insert our company logo (a DXF file) into the a title block definition however the insertion point seems to default to 0,0.How can I insert it with a user defined insertion point?
You will see from the attached screen snipe what I mean about being forced to insert it at the 0,0, coordinates. I'd like to insert it into clear space then scale it and move it into replace the existing logo.
View 4 Replies
View Related
Nov 12, 2013
Any way to create a dynamic link between the property set attached to a space and excel?
I have a lots of spaces that has a property set attached, some of this property changes often. So if it was possible to create a excel sheet that presents each property for each space and then I could change the property in excel and put it back to Architecture it would save me a lot of time.
View 1 Replies
View Related
Sep 18, 2013
I am new to dynamic blocks. I have figured out how to use the Properites block for "preset" definitions but we offer a product in infine sizes (within limits). For example the width may range from 30" to 200" in fractional increments which is impossible to set up presets. Is there a way that a person can set up the properties block so that a person would be prompted to enter required information, I.E. Width = xx", Height = xx" etc.?
View 3 Replies
View Related
Dec 13, 2013
I am using some custom property set definitions to add information to spaces. However as I insert spaces I find that I have to go to the extra step to add the property set to the object using the Extended Data tab in the Properties Palette.
It is not a huge deal but sometimes it is forgotten and schedules are not reporting properly, or the display theme is not correct. Although there are tools to quickly add them I would like to know if there is an automatic way to add them while creating the spaces/zones.
On a related note. There is a property set definition that is in each file by default called RoomFinishObjects. Is there a way to purge this? I don't want to attach finishes to my objects. But it seems to be embedded in the file.
View 4 Replies
View Related
Sep 17, 2010
Is there a way to preset the reach of the sprout on Location Property Definitions in Property Sets?
For example, I have upper cabinets that aren't over a Space, because there isn't flooring underneath them. Because of this, the sprout reports "Space Not Found" in the cabinet schedule, and I have to go in and manually pull each sprout out until it latches onto a Space.
I would like to set all sprouts to automatically reach out 2'6" from their insertions point.
View 9 Replies
View Related
May 3, 2012
I FINALLY decided to get my head around the Sheet Set Manager (kudos to Kate Morrical's video series).
I understand the need to create custom properties, and I can see that you can either "add" or "delete" custom properties, but is there any way to CHANGE the property after it's been defined?
For example, if I create a custom property complete with a default value, but discover later that I made a spelling mistake (eg. "Darwn By" instead of "Drawn By"), is there any way to MODIFY it?
View 1 Replies
View Related
May 26, 2013
I have created a new layout from Templates that are the C3D standard templates. I get the below messages in my command bar and subsequently my template does not have any of the blocks, north arrow...nothing. Just a blank sheet. Why? See below messages that I copies from the command bar....
Command: <Layout from Template>
Duplicate definition of block _ClosedBlank ignored.
Duplicate definition of block AeccTickLine ignored.
Duplicate definition of block AeccTickCircle ignored.
Duplicate definition of block North ignored.
Duplicate definition of block Graphic Scale - Imperial ignored.
Duplicate definition of block ANSI D Title Block ignored.
View 9 Replies
View Related
Nov 25, 2011
The CADdesigners have asked me if i can make a function that runs through our AutoCAD 2012 MEP model attaching certain predefined classification definitions to ducts, pipes, MVparts etc.
I have used hours searcing for examples / tutorials on how to connect to the MEP objects not finding what i need.
View 5 Replies
View Related
May 7, 2013
I have some code to replace the current title block with a title block from a template file. I just don't like how it adds a new title block definition named "copy of titleblock". I'd like to delete or replace the current title block definition so only the newly added one is listed.
Sub test() Dim odrawdoc As DrawingDocument Set odrawdoc = ThisApplication.ActiveDocument If (odrawdoc.DocumentType <> kDrawingDocumentObject) Then Exit Sub Dim oTemplate As DrawingDocument Dim oSourceTitleBlockDef As TitleBlockDefinition Dim oNewTitleBlockDef As TitleBlockDefinition Dim oSheet As Sheet Set oTemplate = ThisApplication.Documents.Open(ThisApplication.FileOptions.TemplatesPath & "template.idw", False) Set oSourceTitleBlockDef = oTemplate.ActiveSheet.TitleBlock.Definition Set oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(odrawdoc) ' Iterate through the sheets. For Each oSheet In odrawdoc.Sheets oSheet.Activate oSheet.TitleBlock.Delete Call oSheet.AddTitleBlock(oNewTitleBlockDef) Next oTemplate.CloseEnd Sub
I'm just being picky at this point, but I don't want a buildup of title block definitions. We reuse drawings all the time which is why a simple method of updating a title block would be nice. I can just imagine in some years time after a title block update or two there are 20 "copy of copy of copy of .................. titleblock" listed in a drawing file.
View 8 Replies
View Related
May 29, 2012
How can I make my spot color definitions choice persistent? I read a kb item that said how to swap out the new Pantone Plus color books for the old ones, to maintain color parity with older versions. One of the steps has me going to "Spot colors" on the swatches pallette and selecting "Use CMYK Values..." instead of "Use LAB Values...". I don't want to have to do this with every file. Is there a way to make this choice persistent?
View 4 Replies
View Related
Feb 12, 2013
Is there a way to control which of two 'Graphic Property definitions' are used via a formula property with a IF, Then, condition statement?
View 3 Replies
View Related
Jul 30, 2011
Any listing of definitions for the options used in the customization tabs? I've been unable to locate any information on any of the "labels" used on these tabs. I was specifically looking for what the check-box "Workspace>>Display>>Use Offscreen Image" does. I can't see anything different by checking or un-checking...
Any comprehensive list...don't know why Corel didn't feel it should describe these options in a "? > click popup" as many of the Microsoft option pages have!
View 5 Replies
View Related
Aug 20, 2011
Is it possible to take Current User Coordinate System of external Database object, like
Application.DocumentManager.MdiActiveDocument.Editor.CurrentUserCoordinateSystem?
View 7 Replies
View Related
Dec 18, 2012
I'm trying to add a database (excel ) as source for object in Map3D.
I start but when i select the excel file that i've created and stored in my pc map3d says that the cration of the data source doesn't work.
View 7 Replies
View Related
Jun 2, 2011
what is the best way of getting (modified) event triggered for some specific object?
i see a lot of examples doing: if database is modified, then trigger event, then iterate our list to if that object is in it.
is that the better that way, like to add handler to the specific object, and then when each of them is modified, then each of them call handler?
View 3 Replies
View Related
May 31, 2013
Any equivalent ObjectOverrule for the PnId Database?
If an entity is copied I dont want certain field values to be copied.I've tried an ObjectOverrule but I can't get the RowId at that point.
I also noticed that the field values are set as XData. I edited the XData in my ObjectOverrule but the values still gets copied.Is there a setting at project level to control which fields not to copy?
View 1 Replies
View Related
Jun 8, 2012
I am trying to convert several drawings that are linked to an SQL database to SQL spatial. The drawings are from a Autodesk map 2004 system. I have Map D 2013 64Bit installed on a laptop along with SQL server 2012 RC0 (Microsoft SQL Server Management Studio 11.0.1750.32 Microsoft Data Access Components (MDAC) 6.1.7601.17514 Microsoft MSXML 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 9.0.8112.16421 Microsoft .NET Framework 4.0.30319.269 Operating System 6.1.7601).
To keep my rouge laptop off the company network I exported our existing SQL data to a access database that I placed on the laptop and converted back to SQL and linked it to the 2004 drawings. That part worked fine. I would like to convert all of them to SQL spatial. I have converted a small drawing but it took a couple of hours. I am in the process of a larger drawing that has 60,000 entities and it has been working for 8 hours and only has 4550 of them completed. I am using the output to fdo connection.
View 8 Replies
View Related