|
Welcome, Guest.
|
||||||
| AutoLISP AutoLISP or Visual LISP, learn both here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: 2003-07
Posts: 6
![]() |
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 |
|
|
|
|
|
#2 |
|
Member
Join Date: 2004-02
Location: Tampa, Florida
Posts: 32
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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
|
|
|
|
|
|
#3 |
|
Member
Join Date: 2003-07
Posts: 6
![]() |
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
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
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 |