Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Line and 'bd combined.

23 REPLIES 23
SOLVED
Reply
Message 1 of 24
tommcgtx
1659 Views, 23 Replies

Line and 'bd combined.

I am fairly new to AutoLisp, so bear with me. I am trying to combine the line command with the option to draw by bearing & distance ('bd), as AutoCad Map 3D 2007 doesn't combine the two like Land Desktop or Civil 3D. Here is what I've tried:

(defun C:LBD ()

  (command "_.LINE" (getpoint) ("'BD"))

)

This does not work, and I am wondering where I've gone wrong. I know it should be a simple thing to do, but I am at a loss.

23 REPLIES 23
Message 21 of 24
jggerth1
in reply to: tommcgtx

version?

 

LDT and C3D handle the transparent commands differently -- on my LDT 2009 install, 'bd does nothing

Message 22 of 24
rforen
in reply to: jggerth1

This is pretty simple. Using BOTH lisp and a script file:

 

The LISP:

(defun c:lbd ()
  (setq pt (getpoint "\n Start point: "))
  (command "script" "u:\\scripts\\line-bd.scr")
)

 

Line-BD.scr:

line
!pt
'BD

 

I put all my LISP for Scripts in one file and all the scripts in one folder.

Enjoy....

Message 23 of 24
tommcgtx
in reply to: rforen

Wow, and only three years later! Smiley Very Happy

Message 24 of 24
rforen
in reply to: tommcgtx

I was having a similar problem....
Drawing line work like a mad man and NEGLECTING to select the 'BD.
Wee pieces of useless lines everwhere!

Before I cypher some code, I take a trip on the iNet to find whats already
written.
Only found the same thing in several places: How Do I Do It ? ? ? ?

Got it done and posted it to several places.
Hope it helps all y'all.
Ray

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost