Jump to content

Recommended Posts

Posted

Hello all, I was gone all weekend and came back to find very helpful things from all of you, lol popcorn eating .gif. I appreciate everyone's help. I will check over the code later today.

 

Again, thanks.

 

Kenter

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

  • Tharwat

    10

  • alanjt

    8

  • Lee Mac

    7

  • Kenter

    7

Top Posters In This Topic

Posted

Hey again Lee,

 

I got the first part working (adding more options in materials) and I tried expanding to do a similar thing with the Thickness. I was unsuccessful. I tried copying the material routine and changing it with the thickness values and making a new (setq ...) statement for the thickness values but I got this error message when I ran it..:

 

**Error: bad argument type: stringp 1.0 **

 

Is it that I cannot reuse 'LM:lst->str' in the thickness, or have I made a small mistake somewhere?? If you could help, it would be much abliged.

 

Kenter

Lee TEF thk.LSP

Posted
Yes. Also thank you for using codes ...... ?

 

I am not sure what you mean? I thanked everyone. Are you looking for a personal thank you??

Posted
Are you looking for a personal thank you??

 

I am not looking for that at all.

 

But I think it is better for you to improve your codes and your own programmes than depending on others, whatever others' codes are more and more professional than yours.

 

Your codes are good and have the abitlities to extend them more weldly.

 

Best regards

 

Tharwat

Posted

Well thank you. I think there is a compliment in there. And I understand what you mean about building on my own abilities, however sometimes people can show you an easier/simpler way of doing something. To learn how they do it to make yourself a better programer is not wrong to me. It strengthens the programer as long as they are actually trying and not just using others to complete a task.

 

Kenter

Posted
Hey again Lee,

 

I got the first part working (adding more options in materials) and I tried expanding to do a similar thing with the Thickness. I was unsuccessful. I tried copying the material routine and changing it with the thickness values and making a new (setq ...) statement for the thickness values but I got this error message when I ran it..:

 

**Error: bad argument type: stringp 1.0 **

 

Is it that I cannot reuse 'LM:lst->str' in the thickness, or have I made a small mistake somewhere?? If you could help, it would be much abliged.

 

Kenter

 

I actually realized this does work. I am not sure why I got an error the first time.... Thanks anyways

 

Kenter

Posted

Hi Kenter,

 

Firstly, the error you were receiving is because the global variable *thk* has a data type of REAL and in your modification of my code you changed this to a STRING - hence it will not error after the document namespace is wiped when you close a drawing.

 

Secondly, I do not mind modifications to my code, but it is coding etiquette to mark where the modifications have been made and who has made such modifications; as I am sure you can understand, failure to do so with erroneous code can reflect directly on the reputation of the original author.

 

Lee

Posted

I'd also like to add that I'm LOVE LOVE LOVING the Quick Reply setup.

Posted

Lee,

I realize what you mean. And I can understand why this should be done. Thank you again for your help. I will edit my code to show where I changed things around.

 

Kenter

Posted
Lee,

I realize what you mean. And I can understand why this should be done. Thank you again for your help. I will edit my code to show where I changed things around.

 

Kenter

 

Not a problem Kenter, happy to help out.

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...