AutoCAD Architecture :: Updating Property In Objects Definition In XREF DWGs

Aug 11, 2011

I am developing an simulation application, leveraging on using Space objects and applied additional Property Set Definitions for Space objects where I introduced a new Property "Value".

I applied a display theme to my DWG, and based on the value of the Property, different colors will be displayed according to the display theme.

For a single DWG file containing the building, I am able to simulate the color changes by updating the “Value” Property in the Spaces using .NET APIs functions such as PropertySet.SetAt, and committing the transaction. 

However, one building can consist of many different levels, and I have split up the modeling of the building into its separate levels. For example, a 3 storey building, I will have 3 DWG files for each individual levels.

A main empty DWG was then used to XREF the 3 levels, to combine the different levels into a whole building. I would like to simulate such colour change through the main DWG which references my individual level DWGs.

what .NET API I can use to access the XREF DWGs in my main DWG, so that I can update the "Value" property in all my Space objects?

View 1 Replies


ADVERTISEMENT

AutoCAD Architecture :: Property Set Definition Integer Value?

Aug 22, 2012

I am trying to reference my room number to another table in my project. This is to satisfy a project requirements and output to a GIS attribute table.

Originally my room number is "001" and when I reference this field to another table I get "1" and drops the first  two digits.

View 2 Replies View Related

AutoCAD Architecture :: Retrieving Value In Property Definition Location

Aug 18, 2011

I am working on extracting information from DWG with extended Property Set Definitions. I have added Location Property on my Door objects, and would like to retrieve it in my application.

Definition as shown in AutoCAD > Manage > Style Manager > Property Set Definitions

DoorObjects Property Set
Name: AtSpaceID
Description: Space - SpaceObjects - SpaceID
Type: Location (becomes Automatic inside .NET API code)
Source: Space - SpaceObjects - SpaceID
Space Objects Property Set
Name: SpaceID
Description: SpaceID
Type: Integer

I have tried the .NET API. see Code below. I am stuck at Property Definition Location. Not too sure where I can retrieve the value for my At Space ID at my Door Objects.

I tried the following code below and it throws error such as eInvalid Input or eNot Applicable.

Part of my code
 
Door doorEntity = trans.GetObject(doorObjID, OpenMode.ForRead) as Door;ObjectIdCollection idsPropSet = PropertyDataServices.GetPropertySets(doorEntity);foreach (ObjectId idPropSet in idsPropSet){ PropertySet propSet = trans.GetObject(idPropSet, OpenMode.ForRead) as PropertySet; PropertySetDefinition propSetDef =
[Code]........

View 1 Replies View Related

AutoCAD Architecture :: Update Property Set Definition Programmatically

Apr 18, 2012

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

View 6 Replies View Related

AutoCAD Architecture :: Property Set Definition If A Number Equals Text?

Aug 8, 2012

I having problems trying to resolve a formula in the property definitions. I have a field that has USAGENO 060, 050 that the user inputs. But I would like to auto populate another field ROOMNAME with its corresponding text, to reduce input and avoid user error. The number always equals a room name as shown below.

060=Office
050=Lobby

I tried on the ROOMNAME field this but its not working. My field is set to formula.

=IF[USAGENO]=060,"Office",IF[USAGENO]=050,"Lobby"))

View 3 Replies View Related

AutoCAD Architecture :: Add Automatic Property Set Definition For Door Swing Direction

Oct 8, 2012

I would like to add a automatic property set definition for door "swingdirection" in my door schedule and replace the “left” with LH, “right” with RH and if neither (N/A)  with DBL (for double leaf doors). 

I thought I remembered being able to view source code in 2004 ADA for how to change and replace but I’m lost in 2013.

View 8 Replies View Related

AutoCAD Architecture :: Create Property Definition That Will Display The Elevation Of Space Object

Dec 18, 2012

I am trying to create a property definition that will display the elevation of a space object.  I looked through the automatic properties and did not find anything that looked like the elevation.

I have tried the following but was unable to achieve any success.

RESULT="--"
On Error Resume Next
Set AcadApp = GetObject(, "AutoCAD.Application")
Set Obj = AcadApp.Activedocument.Objectidtoobject("[ObjectID]")
RESULT = Obj.elevation

That formula does work if i swap elevation with say height, width,length or any of the properties found in the automatic property list that are a single word.  I know the elevation is there I just don't know how to access it.

View 2 Replies View Related

AutoCAD Architecture :: Editing Property Sets From External Objects - Removal Of File Lock

Sep 4, 2012

I've got a problem following playing around (Typical, isn't it?). Architecture 2011 allows editing property sets from external objects through the host drawing (i.e. change a room number of a property set attached to a space xref'ed in from another construct). This obviously has to put an editing lock onto the xref to prevent data loss in case somebody else works on the xref in the meantime. This editing lock is removed when I close my host drawing. However, the lock is immediately restored when I re-open the host drawing.

How can I release the xref file lock again after editing the property sets in my host drawing?

View 1 Replies View Related

AutoCAD Architecture :: XRef Objects Not Showing In Drawing

Dec 11, 2013

I have a drawing done in AutoCAD Architecture 2013.  Most of it is just lines, but I have a couple of Walls with Doors.  It looks fine in the base drawing but when I xref into another file the walls revert to their original color and the doors have disappeared.  The opening is there but no door.

I tried xredit and the doors are there but when I close that they are gone again.  Tried detaching and reattaching...still have the problem.

After I posted this tried Display Configuration.  Clicking all options for Doors gives me the doors...in a closed position, not the same as in the base plan.

View 1 Replies View Related

AutoCAD .NET :: How To Set Property Definition Display Order

Nov 13, 2013

I am programmatically creating several property defintions inside of a property set definition.  I would like to be able to set the display order of the property definitions but the property is read only.  How to be able to accomplish this using the API?

View 1 Replies View Related

AutoCAD Architecture :: Two Graphic Property Definitions Set By Formula Property?

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

AutoCAD Architecture :: Set Manual Property Value Within Another Property's Formula?

Aug 25, 2011

I have two related properties... One is a formula property, the other is a manual property.

In the formular property I'd like to set the value of the manual property.

View 1 Replies View Related

AutoCAD Inventor :: Model Custom Property To Sketch Symbol Definition

Sep 29, 2011

How would i insert the "variable name" of a custom iProp to a sketched symbol definition (in an idw)?

I can plonk the value of the iProp in no worries, but to make it "live" is a bit beyond me...

 Sub WeldNote()On Error Resume NextDim oDoc As DrawingDocumentDim SketchedSym As SketchedSymbolDefinitionDim oNoteDef As SketchedSymbolDefinitionDim oDefSketch As SketchDim oTextbox As TextBoxDim SNewText As StringDim sNoteText As StringDim oReffedDoc As DocumentDim lReffedWeldType As Long'Err.ClearIf

[Code].....

View 9 Replies View Related

AutoCAD VB :: Updating Block Reference After Making Changes To Definition

Aug 23, 2013

I have a small vba sub wich changes the color and layer of all entities inside a block. It seems to work pretty well for the majority of blocks, but then if I try that on a dynamic block, the definition is correctly altered, but the references aren't updated...

I know for a fact that the definition has been correctly modified because if I type bedit, I can see the definition is modified. Then, in the block editor, if I save the block, the references are correctly updated.

How to force references to update after I made the modifications inside the definition ?

I searched for methods within the VBA Reference and I tried blockRef.Update but it doesn't seem to have any effect.

View 2 Replies View Related

AutoCAD Inventor :: Physical Property - Model - Mass Not Updating?

Oct 21, 2013

I have a .iam and .idw that i copied/designed from vault. The .idw has a sketched symbol that has a text box with the mass property. When update mass is applied the mass property in the text box does not. I ran into this once before and got it to work by re-inserting the symbol into the .idw but I can't get it to work. The orginal that was copied from works fine.

IV2013

Vault Collaboration 2013

View 3 Replies View Related

AutoCAD Architecture :: Convert PDF Files Into Editable DWGs?

Apr 10, 2012

convert PDF files into editable and dimensionally correct DWG files?  I've used auto-vectorization software programs before and the results are thousands of vectorized lines, arcs and circles, etc. 

View 5 Replies View Related

AutoCAD Architecture :: DWGs Switching To Read-only During Multi-user Use

Nov 24, 2008

We've been having some issues that have only recently cropped up. If I am in a drawing named FP-00.dwg and I am working, saving regularly, etc. everything is fine. If a co-worker opens up the same file, he will sometimes (10%) NOT receive the read-only pop up and he will open the same drawing with full rights. Then, if I go and try to save, I will be alerted that the file is in use, and my file will be switched to read-only. When I have to do a saveas, the file then changes the default name to: FP-00.fdwg (notice the "F" in front of .dwg).

I posted this to the AutoCAD Architecture group, b/c we are currently using Architecture 2k8.

No one has changed out Open/Save options, and we haven't been losing the connection with our server.

I'm attching a PS of the Open/Save setting.

View 7 Replies View Related

AutoCAD 2013 :: Updating Attached DWG (Xref)?

Nov 7, 2013

Updating the attached dwg (Xref),The file Q1 is attached to the file Q5 (attached). Edits are applied to the Q1. These edits are not transferred to the Q5 despite the fact that the “regenerate” button is pressed.

What might be the issue here? How the edits on the Xref files are reflected directly to where they are attached?

Software: AutoCAD 2014, AutoCAD C3D, AutoCAD M3D, Revit
Windows 7 (Ultimate 64 bits),
Firefox 20.0,
Kaspersky 2013.

View 6 Replies View Related

AutoCAD Civil 3D :: User Defined-Property Classifications Not Displaying In Xref Table

Aug 7, 2013

I am displaying stationing for my points, the points were brought in with a user defined classification. Then a table was created with the classification.

Base file- table looks good / when I xref the table it loses the station formatting.

I even tried importing all my user defined tables and styles and still didnt work
 
Civil 3D 2012 SP3

View 2 Replies View Related

AutoCAD .NET :: Updating Xref Path Without Opening Drawing?

Aug 6, 2012

I am building a plugin which needs to change the xref path within a drawing without opening it.

here is my. I am new to .Net c#

[CommandMethod("refremap")]
public void refremap() // This method can have any name
{
//Get the document
Document Doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = Doc.Editor;

[code]....

View 4 Replies View Related

AutoCAD Architecture :: Material Definition Display Components

Feb 25, 2013

I want to change the color of a material definition in 2d wireframe (plan view).  For example, for walls, when the mat. def. is checked in the wall display props, the hatching shows orange->color 30.

When I look at one of the materials listed for said wall, in style manager, for that display component, there are diplay components similar to an object format, but in the mat. def. the components control the color (see attached example).

Now is there a "master setting" to change them - I want to change say the plan linework or section hatch to a different color to match our layer color standards or do I have to go into every since display rep. for every single mat. definition and change them or is there a way I can do it once & all will change?

The out of the box objects are great but what I am worried about is that those colors that are given don't work well with our office standard, esp. if we go back to old projects.

View 2 Replies View Related

AutoCAD Architecture :: True Text In Attribute Definition

Oct 4, 2011

I am attempting to create my first Title Block with attribute definition.  I am having trouble finding a way to use True Text.  My goal is to use Arial Black.  The Attribute Definition window provides only 3 text options: Pres, Notes, and Standard.  Adjusting the Width Factor does not yield a text that will replace Arial Black.  Is there a way to import true text into CAD for this purpose? 

View 5 Replies View Related

AutoCAD .NET :: Removing Objects From Block Definition?

Dec 21, 2011

I need to remove lines from a block definition and replace them with LWpolyLines. I see there is a way to Append entities to a BlockTAbleRecord but I don't see a way of removing an entity.

View 2 Replies View Related

AutoCAD Architecture :: Attribute Definition - Prefix Refers To Textwidth

Apr 27, 2011

Within a block I have a attribute definition and a textfield which refers to the value of the attribute definition.

The value of the attribute definition displays neatly as it's supposed to but the textfield gets the prefix  w0.6000;

This Prefix refers to the textwidth I know that much but I can't get rid of it!

The peculiar thing is that if I don't use the "multiple lines" option in the attribute definition the problem disappears.

I really need to use this option because I wanna apply a textmask to it....

View 2 Replies View Related

AutoCAD Architecture :: Remove Material From Object Leaving It To Its Global Definition?

May 12, 2012

I tried to use the command "Remove Material" from the rippon, and I get no rsponse, and deleted the material from the palette and yet the material there, How can I get rid of the materials I attached to the walls?

View 1 Replies View Related

AutoCAD Architecture :: Roof Elevation Property

Feb 8, 2008

what the roof elevation property relates to and why? Actually, I know that it is the initial insertion point of the roof baseline, but why doesn't it update with grip edited changes in the elevation of the baseline? See the attached file. The three x-lines converge on 0,0,0. The roof elevation is stated as 0. Obviously that property is meaningless. Considering the importance of roof elevations and making them meaningful, you'd think there would be some rhyme or reason to that property.

View 4 Replies View Related

AutoCAD Architecture :: Displaying Property Set Data In A Drawing

Jul 25, 2013

Is there a way to display and control the visibility of property set data next to a tag or object in model space?

For example, imagine a floor plan such as a large hotel with a lot of doors.  It would be nice to be able to look at the plan and see which doors have had their property sets filled out and which ones have not; and, it would be great if the visibility of the property set data could be toggled on and off so as not to clutter up the drawing when not needed.

View 7 Replies View Related

AutoCAD Architecture :: Display Property In Live Section?

Apr 13, 2012

I've created a Live Section Cut. I want to change the hatching in the wall sections. I looked at the Display Property of the Wall Style, but the Model Display is bold, not the Section Display. The Section display has options for Hatching, etc., but the Model Display does not...Do I need to edit the Material assigned to that wall?

View 1 Replies View Related

AutoCAD Architecture :: Property Set Data When Exporting To Old Formats?

Mar 22, 2011

We are creating property set data and attaching it to polylines in autocad 2011. export the drawing to the older format (2007) and maintain the property data connection. We don't have and old version anymore so I can't test.

View 1 Replies View Related

AutoCAD Architecture :: Schedule Tag With Multiple Property Sets

Mar 16, 2012

I've got a multi-family building where I'm trying to create a schedule tag that will number walls sequentially in a view drawing. The units are elements that are then brought into a construct and mirrored and rotated as needed.

The first thing I did was to create a Property Set  that uses Level and Manual property set that automatically increments to create a property called Unit Number. Then created a tag that will number the units in my building i.e. : 201 202 etc.  This works fine.

I then created a Property Set to apply to the walls that uses the Unit Number from the other Property Set along with a Manual Property Set that increments as well to create a wall tag.  What I am expecting to get is 201-01, 201-02 etc.  What I’m getting is ?-01, ?-02 etc.

View 7 Replies View Related

AutoCAD Architecture :: Manual Property Set Definitions In Dwfx?

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







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