×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

vla-get-tablestyles

vla-get-tablestyles

vla-get-tablestyles

(OP)
Hello CAD friends,

I was wondering if anyone one know why there is a
problem with vla-get-tablestyles.

(defun c:test1()
(vl-load-com)
(setq ActDoc (vla-get-ActiveDocument (vlax-get-Acad-Object)))
(setq TabCol (vla-get-TableStyles ActDoc))
(setq TabSty (vla-Item TabCol "Standard"))
(stq ObjID (vla-get-ObjectID TabSty))
(command "_TEXT" '(30 30) "5" "0"
(strcat "%<\\AcObjProp Object(%<\\_ObjId " (itoa objID) ">%).Name>%"))
)

Thanks

HofCAD CSI

RE: vla-get-tablestyles

Could you mean vla-get-TextStyles instead?

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: vla-get-tablestyles

(OP)
Hello Borgunit,

No I do not mean vla-get-TextStyles,
but I do mean vla-get-Tablestyles.
This is because I can get allready the ObjectId
from Blocks, Dimstyles, Layers, Linetypes, Textstyls and Views for the Named object type of a Field.
 

RE: vla-get-tablestyles

When I look at the Object Model of AutoCAD in the help, there is no TableStyle object or collection.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: vla-get-tablestyles

(OP)
Friends,

Thank you so much for this. It's exactly what I have been looking for.
But is it also possible to make an Table-Style with Lisp?

HofCAD CSI

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources