Hi gang,
I heard about this place from the autodesk forums but took me a while to actually come here
I asked this question over there but this place seems to be more active.
anyway if anyone has a moment or two to offer some help it would be appreciated, im trying to enter some custom info into the dwg properties
(setq dname (vl-filename-base (getvar "dwgname")))
(setq jname (vl-Filename-Base (vl-Filename-Directory (getvar "Dwgprefix"))))
(vla-AddCustomInfo si "DWG Name" dname)
(vla-AddCustomInfo si "Job No." jname)
now my question is this
when i run the lisp it will add this info.
if the custom info dwg name and job no. should happen to change when i run the lisp again, how can i get it to delete the info that is there and replace it with the new info?
also if the info doesnt change should the lisp be ran again what is the code to just skip it
is this correct? i havent tried but i have a feeling this isnt it
(if (= vla-AddCustomInfo si "DWG Name" dname)
(setq dname nil)
)
and if someone could fill me in on exactly what is the purpose of the "keywords"