- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi y'all!
I have spent an hour or two researching the possibility of exporting the data of from "Property Sets" into a text file. When I write property set I mean those that can be found on the "extended data" tab in the properties palette. I've come to the impression that it isn't too straight forward. I'm still optimistic that the forums might know better!
Anyhoo. What I think I want is...
...to export all the property set data of objects with property sets into a text file in such a way that the data is exported in the format "obj_handle", "obj_type", "propertyset_name", "property", "property_value".
I got the impression that "dictionaries" are somehow involved (?). I am not a total newb with lisp development but I accessing the propertyset values is new for me. The part with exporting to a text file I already have but the iteration of objects and properties within property sets is something I hope to get some help with!
I think the process should roughly be
- Start command
- Initialize outputlist
- Select and filter objects (only objects with propertysets)
- For each object in objects
- get objHandle
- get objType
- For each propSet in propSets
- For each prop in propSet
- get propvalue of prop
- add '(objHandle objType propset prop propvalue) to outputlist
- For each prop in propSet
- Insert title row to outputlist
- add the column titles "obj_handle", "obj_type", "propertyset_name", "property", "property_value"
- Reverse outputlist
- Write outputlist to text file
Thanks in advance!
Solved! Go to Solution.