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