hofcad
2006-02-15, 02:49 PM
Hello CAD friends,
I was wondering if anyone know why there is a
problem with vla-get-tablestyles.
This is because I can get already the ObjectId in a similar way
from Blocks, Dimstyles, Layers, Linetypes, TextStyles and Views for the Named object type of a Field.
How can I find the Object ID of a tablestyle?
(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
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
I was wondering if anyone know why there is a
problem with vla-get-tablestyles.
This is because I can get already the ObjectId in a similar way
from Blocks, Dimstyles, Layers, Linetypes, TextStyles and Views for the Named object type of a Field.
How can I find the Object ID of a tablestyle?
(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
[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]