AutoCAD Architecture Customization

AutoCAD Architecture Customization

Reply
Valued Mentor
mdhutchinson
Posts: 2,292
Registered: ‎11-18-2003
Message 1 of 7 (425 Views)

Anyone know a way 2 automate updating property setdefs from some source file?

425 Views, 6 Replies
04-18-2012 01:57 PM

Does anyone know a way to update a property set definition programatically?

Or via a toolpalette 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...

Contributor
CV438
Posts: 23
Registered: ‎08-18-2007
Message 2 of 7 (404 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

05-25-2012 01:40 PM in reply to: mdhutchinson

 

 I'm in the same boat.  Looking for a way to automate this....

*Expert Elite*
leothebuilder
Posts: 481
Registered: ‎07-05-2010
Message 3 of 7 (388 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

06-01-2012 01:19 PM in reply to: mdhutchinson

I don't know how to do this programmaticcally but as a workaround in Style Manager, if you have the source file open together with the destination file(s) it is easy to copy and paste the PSD form source to destination.

*Expert Elite*
Keith.Brown
Posts: 1,138
Registered: ‎03-13-2008
Message 4 of 7 (373 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

06-07-2012 02:31 PM in reply to: mdhutchinson

I assume by update you mean attach to an object automatically?

 

There is a whole sample file in the VB.net or C#.net Samples Directiory that deals with property sets and how to attach them to objects.  You would just need to create an event handler that will fire off whenever an object is created so you could programmatically attach the property set.

 

I am not sure if this is available using LISP or not.  Maybe looking at the .NET code could get you started in the right direction though.

 

This functionality is also availble for ObjectARX.

 

 


Keith Brown AutoCAD MEP BLOG | RSS Feed
AutoCAD MEP 2014 | Revit 2014 | EastCoast CAD/CAM V6.1 | Visual Studio 2013
────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate. Thank you!
Valued Mentor
mdhutchinson
Posts: 2,292
Registered: ‎11-18-2003
Message 5 of 7 (371 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

06-07-2012 02:35 PM in reply to: mdhutchinson

No ... The set is already attached to the object. I mean if the property set was modified in a standards 'library' dwg and it needed to be redefined / updated in the dwg where it is being used.

Valued Mentor
mdhutchinson
Posts: 2,292
Registered: ‎11-18-2003
Message 6 of 7 (354 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

06-20-2012 08:05 AM in reply to: mdhutchinson

I ran across this command... AecApplyToolPSD

when attempt to run it... I get 'This command can only be run from the tool system.'

I tried putting it in a command tool on a tool palette... and I got the same.

 

I think this might hold a possible way to import a revised property set definition.

 

Any idease how this can get into the 'tool system' in a way I might be able to experiment with it?

*Expert Elite*
David_W._Koch
Posts: 2,521
Registered: ‎12-09-2003
Message 7 of 7 (350 Views)

Re: Anyone know a way 2 automate updating property setdefs from some source file

06-20-2012 04:17 PM in reply to: mdhutchinson

A Tag Tool has properties that allow you to specify one or more Property Sets (from a source file) and have them applied to an object (whether or not a Tag is added, and, if a Tag is added, whether or not the Tag references the Property Set(s)).  Perhaps the AecApplyToolPSD command is what is behind this action (I do not know for certain).

 

I would think that this would follow the usual rules and would only import a Property Set from the source file if the target file did not already have a Property Set of the same name already defined, otherwise, the local definition would be used.  So it would not appear likely that this could be used to update a Property Set definition.  Right clicking on a Tag Tool offers the option to just attach the Property Sets, but it does not have a choice to re-import the Property Sets.  Sounds like that would be a good wish - assuming that the response from Autodesk would not be to use Project Navigator and Project Standards.

David Koch
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.