Jump to content

Recommended Posts

Posted

Is it possible to find out computer's name?

Posted
Is it possible to find out computer's name?

 

Sure .. :)

(getenv "computername")

Posted

Click on the Windows START button, open the CONTROL PANEL then click on SYSTEM. You'll see the Computer Name, Full Computer Name, Computer Description and Domain plus a bunch of additional information. I thought all Windows users knew this.

Posted

I will guess that OP was looking for a programmatically solution, thus the area were thread was posted.

Posted

Could have had the info at hand in less time than it took to type the question but I do see your point. Thanks.

Posted

Some people using these functions to guarantee the code is not open for all as a security checks . just an example .

Posted

Yes, is for using in autolisp code and for security...thanks guys!

Posted
Yes, is for using in autolisp code and for security...thanks guys!

 

Thanks for the approval :D

Posted

Security? There is no such thing when it comes to code or computers. Thanks for the chuckle. Have a sparkling day. :)

Posted

User and workstation names are the easiest features to replicate when someone is trying to port your routine on other system.

Posted

You win. I was just funning with you. Have a good one.

Posted

Another inconvenience, you will need to re-compile and deploy the routine(s) each time add a new post.

Posted
You win. I was just funning with you. Have a good one.

Opps! I thought I was referring to OP's solution.

A good day to you, too!

Posted

The OP may have been misunderstood. The projects I'm working on rely heavily on automation and filling in the users' name in the title block is an especially useful item.

 

(setq username (strcase (substr (getvar "LOGINNAME") 1 2)))

 

I can see how one day they may ask me to include information on which workstation the drawing was prepared at as well. So I for one learned something useful with this.

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