Monday, October 19, 2009

AecAnnoScheduleTagAdd and AutoLISP

Here is a solution I wanted to share on how to use AecAnnoScheduleTagAdd in AutoLISP.

The thing is that it's a point that the command expects.
"Expects a point or Symbol/Leader/Dimstyle/Edit/Constrain"

To get a point on the selected object you can use (cdr (assoc 10 (entget(entlast))))

Example:
(command "._AecAnnoScheduleTagAdd"
  "C:/mypath/Schedule Tables (Metric).dwg"
  "_symbol"
  "M_Aec_Room_Tag"
  "_edit"
  "_n"
  (cdr (assoc 10 (entget(entlast))))
  "_c"
  ""
)

No comments:

Post a Comment

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.