TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on November 04, 2004, 12:05:35 PM
-
Hi all...
I'm trying to get a list of DIMSTYLE available in the current drawing..
in LISP.
any idea ?
thanks
-
ok...sorry I found the solution....
(setq dimstyle_list (ai_table "dimstyle" 4))
but it will be interested to have any other idea..;-)
thanks :wink:
-
Have a look at tblnext and tblsearch
-
Do it with VBA and you can't go wrong :D
-
Ran across this today:
(defun getdims
(/ dim ;dimstyle
dimcol ;dimension collection
dwg ;current drawing
return ;list to be returned
)
(vl-load-com)
(setq dwg (vla-get-activedocument (vlax-get-acad-object))
dimcol (vla-get-dimstyles dwg)
return ()
)
(vlax-for dim dimcol
(setq return (append return (list (vla-get-name dim))))
)
return
)
-
Ran across this today
Hi
CAB I really think the person who wrote that should be credited, it's only polite and proper to do so when the person is known (in my humble opinion) -
Code written by Michael K. Sretenovic, original can be found here -
http://forums.augi.com/showthread.php?p=60269#post60269
Have a good one, Mike
-
Please forgive my lazy behavior. I had no intention of slighting the person
whose post I copied. As that person did not put his or her name in the header of
the code nor claimed to be the original author. I just copied the code to my
library 'As Is'. I did not ask who the original author was and did not record
the source or the code. I thought that if the author wanted there name
associated with the code they would add it to the header of the code, I do. I
did remember where I got it as it was the same day that I copied the code but
was too lazy to go back and get the link. My apologies if I offended you or the
author. I NEVER remove the authors information and I did not intend to take any
credit for creating the code. Your comments will no doubt make me more aware
in the future.
Thanks
CAB
-
Hi CAB
No foul / harm and I honestly know you weren't trying to pass-off as your own, I just believe it's best to quote original source if possible....
Cheers, Mike
-
Thanks Mike
I'll will try to be a better Librarian in the future.
I do collect a lot of code and code snipits but I don't do a good job of organizing them.