CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.094.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search Search  Events Events  Register Register  Login Login

Topic Closedhelp w/layer creation lisp

 Post Reply Post Reply
Author
brenth View Drop Down
Newbie
Newbie


Joined: 17.Jan.2008
Status: Offline
Points: 11
Direct Link To This Post Topic: help w/layer creation lisp
    Posted: 03.Apr.2008 at 19:41
I am trying to figure out how to add an if condition to the following lisp routine:
 
     ; LAYER SETUP
     ;
(defun C:CHECKLA (HDNAME HDCOLOR HDLTTYPE)
  (command "cmdecho" "0")
     ;  (if (= (tblsearch "layer" hdname) nil)
  (command "layer" "m" HDNAME "c" HDCOLOR "" "lt" HDLTTYPE "" ""
   )
  (command "layer" "s" HDNAME "")
     ;  )
)
 
 
This routine creates a new layer in the drawing when the user selects the layer name from a pulldown menu. variables are set for HDNAME, HDCOLOR AND HDLTTYPE. I want to add a conditon where if HDNAME is equivalant to C-BORDER or BORDER, then the new layer is turned to a non-plot layer.
 
Any help is appreciated
 
Also If anyone can suggest a website, or book that is a dictionary of lisp commands I would love to get ahold of that info
 
Thanks


Edited by brenth - 04.Apr.2008 at 01:48
Back to Top
Arben.Allaraj View Drop Down
Senior Member
Senior Member


Joined: 14.Nov.2007
Location: Albania
Using: AutoCAD 2008
Status: Offline
Points: 602
Direct Link To This Post Posted: 04.Apr.2008 at 12:14
 
 CHECK  FOR  HELP ABOUT  PROGRAMMING TO AUGI.COM.
 YOU  CAN SEE A GOOD WEB ABOUT LISP.
Ing Arben.Allaraj
http://cad-drafting-corner.blogspot.com
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,066 seconds.