|
custom properties calls
hi all,
i need a bit of help here. i am modifying some of my macros in sw 2008, and am trying to manipulate some custom properties. i need to get the current value of an existing one. the property is under the 'custom' tab, (part wide), not under the individual configuration tab. i can change teh value no problem, but how do i retrieve the current value. i am using, or trying to use the new, wonderful custom property manager, but how do i retrieve the properties that are not configuration specific?
thanks
tom
just retrieve the custompropertymanager object from the modeldocextension object rather than from a configuration object.
i'll get you eh steve, if it's the last thing i dooooo!
josh,
thanks, but can i bug you a bit more. here part of my code....
set model = swapp.activedoc ' attach to the active document
doc_propmgr = model.custompropertymanager("")
of course, when i go tot run it i get "object does not support this property or method"
a couple things...
set model = swapp.activedoc ' attach to the active document
this line sets the variable "model" to point to the modeldoc2 object. the custom property manager has to be retrieved from the modeldocextension object, which is gotten from [modeldoc2 object].extension.
the custom property manager is an object, so to get it you have to use the set keyword (i think it's a keyword?).
put those two things together and you get:
set doc_propmgr = model.extension.custompropertymanager("")
i'll get you eh steve, if it's the last thing i dooooo! |
|