Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-06-16, 03:40 AM   #1
om_change
Member
 
Join Date: 2003-07
Posts: 6
om_change is starting their journey
Default autolisp in LDD

I using LDD 2i, i often need other routine that not available in LDD, so i try to make in autolisp. I have several problem :
1. How to access point id in my LDD point database so i can use the attribute of that point to my lisp.
2. How to call the menu in LISP? example : i want to use Point -> Create Point -> Manual in LISP. (Menu Point are available in LDD)

Thanx a lot
om_change is offline   Reply With Quote
Old 2004-06-16, 06:16 PM   #2
MarkTheSwampThomas
Member
 
Join Date: 2004-02
Location: Tampa, Florida
Posts: 32
MarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightlyMarkTheSwampThomas is glowing brightly
Default RE: autolisp in LDD

how about this
Code:
(defun MST-CreateCogoPoint (PointCoords / AeccProject Pnts NewPoint)

  (vl-load-com)

  (if
    (listp PointCoords)
    (progn
      (vl-catch-all-apply 
        (function 
          (lambda () 
            (setq AeccProject
                  (vlax-get-property
                    (vla-getinterfaceobject
                      (vlax-get-acad-object) "Aecc.Application")
                    'ActiveProject)
                  ); setq

            (setq Pnts 
                  (vlax-get-property
                    AeccProject 'CogoPoints)
                  ); setq

            (setq 
              Count (vlax-get-property Pnts 'Count)
              ) 

            (setq
              NewPoint
              (vlax-invoke-method Pnts 'Add 
                (vlax-3D-point PointCoords) 1)
              ); setq

            (setq
              NewPointNum (vlax-get-property NewPoint 'Number)
              )
            ); lambda
          ); function
        ); vl-catch-all-apply
      ); progn
    ); if

  ); defun
__________________
C3D/LDT2006
I'd rather be using NetBSD
MarkTheSwampThomas is offline   Reply With Quote
Old 2004-07-07, 11:34 PM   #3
om_change
Member
 
Join Date: 2003-07
Posts: 6
om_change is starting their journey
Default

Thanx mark, let me try this lisp. I still confusing about how to make lisp to draw polyline with given ID Point or Description of point, not the coordinat or getent thing. I think that gonna be a big memory, because i had to collect all information about that point using selection of set do i right?
om_change is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AutoLisp Variables spencer.67965 VBA 9 2007-10-11 08:53 PM
ADS request Error pconant MDT - General 7 2007-08-09 01:01 PM
Co-ordinate Autolisp programming saifi2003 AutoLISP 1 2004-06-05 05:16 PM


All times are GMT +1. The time now is 03:48 PM.