Jump to content

Can a lisp be used to force a value change of a specific tag?


Recommended Posts

Posted

lol, sorry I'd already updated the code :)

 

As for 'MAssoc' that's one way, here's perhaps two more :)

 

(defun massoc1 ( x lst )
 (vl-remove-if-not
   (function
     (lambda (pair) (= x (car pair)))
   )
   lst
 )
)


(defun massoc2 ( x lst )
 (if lst
   (if (= x (caar lst))
     (cons (car lst) (massoc2 x (cdr lst)))
     (massoc2 x (cdr lst))
   )
 )
)

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

  • Cat

    20

  • David Bethel

    12

  • BlackBox

    12

  • Lee Mac

    5

Top Posters In This Topic

Posted Images

Posted

Dualing Lisp Gurus............Any luck?

Posted

Cat,

 

I think that you are pretty well screwed as far as easily automating this one. You have 187 ATTDEFs but only 159 unique prompts. Only 160 unique combinations of tagnames and prompts.

 

-David

Posted
Cat,

 

I think that you are pretty well screwed as far as easily automating this one. You have 187 ATTDEFs but only 159 unique prompts. Only 160 unique combinations of tagnames and prompts.

 

-David

 

Yeah, I've pretty much had that "screwed" feeling since yesterday. I really appreciate all the effort everyone put in to try and help with this situation. I did however come away with some useful tools for "normal" applications. Thanks again guys.

Posted

Sorry I couldn't be of more help, Cat. :(

Posted
Sorry I couldn't be of more help, Cat. :(

 

No worries Renderman, I knew I was in trouble when I saw the tag configuration for the titleblock revisions. Thanks again for going above and beyond in your effort.

Posted
Thanks again for going above and beyond in your effort.

 

 

I'm happy to not help, anytime! lmao :lol:

Posted

You could step through the titleblock's attributes and rename the tags. From there you could do all the 'updating' you needed and you would have a newly updated and non-retarded titleblock.

Posted
You could step through the titleblock's attributes and rename the tags. From there you could do all the 'updating' you needed and you would have a newly updated and non-retarded titleblock.

 

Thanks Alan,

These are more or less b@@@d drawings from Germany that I hope we won't be getting very often, on top of which, they didn't use the same border throughout the project and they are all configured with the same "logic"....almost choked just trying to type that.:lol:

Posted

Hi Guys,

Just thought I'd let you know that after trying to work with these mucked up titleblocks for the past few days I made an executive decision and blew them to bits with special explode today......I enjoyed it too.:whistle:

Posted

Adj. 1. gratifying - pleasing to the mind or feeling; "sweet revenge"

sweet

pleasing - giving pleasure and satisfaction; "a pleasing piece of news"; "pleasing in manner and appearance"

 

1234567890

  • 4 months later...
Posted

This is very close to what I'm looking for.

Could you please tell me what I need to change on the lisp as I'd like to clear the value regardless of what the previous value is.

 

Many thanks for your help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...