Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

vla-get-tablestyles

Status
Not open for further replies.

HofCAD

Computer
Feb 10, 2006
8
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
 
Replies continue below

Recommended for you

Could you mean vla-get-TextStyles instead?

"Everybody is ignorant, only on different subjects." — Will Rogers
 
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.
 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor