hello all.
i want to say sorry in advanced for the title, it might be a little misleading as i didnt know how to properly word what i need help with.
let me explain my dilema.
i have a lisp file that scans my bill of material and turns it into a text file to be processed by another software program.
im looking to make a program that, when certain lines contain certain criteria it changes other lines.
(see picture for further explaination)
ok so in the picture, lets say that when i run my lisp and the code finds that the "section" with "ft" or "inches" has something there
i want it to take those numbers, add them together and replace the dash under "test3" with that number and then put dashes in the "ft" and "inches" section.
now, i have the code to compare sections and see that the ft and inches has something there, and i have code to add them and do almost everything else im looking to do, however what im difficult is to replace the dash under "test3" with it.
i know how to swap it out using entmod and selection sets but when the items are in lists,... yea im having trouble with it.
i just cant figure out how to get a list item as an selection set with out it asking me to select it. thats what im trying to avoid.
i hope i explained my issue and someone can point me in the right direction
edit: this is the code i was trying to use to swap it but like i said im trying to avoid the ssget
if there is a better way i would appreciate some guidance
thanks
(setq ss (ssget))
(setq vlaObj (vlax-ename->vla-object (ssname ss 0)))
(vla-put-textstring vlaObj (vl-string-subst "hello" (vla-get-textstring vlaObj) (vla-get-textstring vlaObj)))