AutoCAD Architecture Customization

AutoCAD Architecture Customization

Reply
Contributor
PengYen6809
Posts: 12
Registered: ‎11-03-2010
Message 1 of 2 (164 Views)

Updating Property in Objects Definition in XREF DWGs

164 Views, 1 Replies
08-11-2011 11:51 PM

Hi,

 

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 colours wil be displayed according to the display theme.

 

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

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.

Any idea 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?

Valued Mentor
jeff
Posts: 338
Registered: ‎05-12-2009
Message 2 of 2 (161 Views)

Re: Updating Property in Objects Definition in XREF DWGs

08-12-2011 12:59 AM in reply to: PengYen6809

For vanilla cad it works great but XrefGraph class might work in AEC

You can also find your answers @ TheSwamp
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.